I have a table named "Conditions" and I want to pivot the rows and show them as a column. MY original table looks something like this:
sales document material condition type condition value
123 111111 ybas 100
123 222222 yzzz 50
124 333333 ybas 150
124 333333 yvvv 75
And I want to transform it into something like this:
sales document material ybas yzzz yvvv
123 111111 100
123 222222 50
124 333333 150 75
The values for CONDITION_TYPE are dynamic. I searched the web and I could't find anything. Also, I'm not that advanced in SQL language.
Thanks!