Skip to content
Advertisement

How to show pivot data without directly using pivot statement?

I am trying to pivoting the data without directly using the pivot function.

I have a simple table t1 which has:

My expected output is:

I want to achieve this without using pivot. I tried using:

How can I achieve the output without pivot?

Advertisement

Answer

You are sort of there, try the following:

See Example Fiddle

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement