Skip to content
Advertisement

How can I group data from multiple rows into the same row?

I have a query:

That returns

I want to combine the rows and take one value from each column (doesn’t matter which, first, last, can be any) So one elementary school, one high school, one university.

It would look like:

However, when I try to group by:

I’m getting only a value for one of the columns and not a combination of all

Thanks in advance for help.

Advertisement

Answer

If you don’t care about any specific value then ANY_VALUE/MIN/MAX is an option:

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