I have the following problem and I think I should use OLAP functions, but I'd never used them before.
So I have:
row_no Id category sell_value
1 1111 5 1670.75
2 2222 4 2777.51
3 3333 15 151.8
4 4444 9 24.54
5 5555 25 110
And I want to get:
id category_5 category_4 category_15 category_9 category_25
1111 1670.75 0 0 0 0
2222 0 2777.51 0 0 0
3333 0 0 151.8 0 0
4444 0 0 0 24.54 0
5555 0 0 0 0 110
Is there any possibility to have my result by using only pls/sql? Or a procedure is required, or how can it be done.
Regards,