Skip to content
Advertisement

SQL convert columns in rows

I want convert this table (Reading):

into this:

My try:

but it does not work.

Advertisement

Answer

MySQL does not support the PIVOT operator. But, you may use a standard pivot query instead:

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