I have a problem that i am not able to fix.
I have a table like this
i want the output to be like this (NOT this, look at the revised result image):
is this possible with T-SQL? maybe with Excel?
There are 140 categories and approx. 60.000 rows.
Edit:
Just to clarify. I want an amount column for every category column. So if there are 140 categories, i want 140 amount columns. If there is no amount for a given category, it just going to null or amount =0.