Skip to content
Advertisement

Move values in different columns to one row

I have the following table:

With this sample data:

Id is my primary key, and this should be UNIQUE in the table. This is possible for all of my rows, if I simply move all values up to one row in the above example.

I only need to make this work when data looks like it is in the above example. This means that the desired outcome would look like this:

one row, where all the values are moved to one row.

How do I accomplish this?

Advertisement

Answer

You can use simple aggregation, does this work for you?

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