I need to transpose my table. Now i have that type of table:
Atr_1|Atr_2
A | 1
A | 2
But i want to get the next result
Atr_1|Atr_2|Atr_3
A | 1 | 2
How should i transpose my table for achieving this result?
I need to transpose my table. Now i have that type of table:
Atr_1|Atr_2
A | 1
A | 2
But i want to get the next result
Atr_1|Atr_2|Atr_3
A | 1 | 2
How should i transpose my table for achieving this result?
Use case statements with
min()
ormax()
aggregation:If you have only two values,
min()
andmax()
do what you want:I think you want aggregation :