Skip to content
Advertisement

how to combine multiple rows into one row?

My table:

What i want to get is:

Is there any simple way for this?

Advertisement

Answer

If you are using MySQL 8+, then ROW_NUMBER combined with pivoting logic provides one way:

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