I have this table:
MoveDate Typ Amount Capacity
2017-01-01 A 1000 10
2017-01-01 B 2000 20
2017-03-05 A 3000 5
2017-06-08 C 1500 6
and want this result:
MoveDate A Capacity B Capacity C Capacity
2017-01-01 1000 10 2000 20 NULL NULL
2017-03-05 3000 5 NULL NULL NULL NULL
2017-06-08 NULL NULL NULL NULL 1500 6
How can I Implement it with pivot or another approach?