Skip to content
Advertisement

Case statements around values in a list

I have a table that looks like below after performing certain joins:

I want see what values a particular id has in sub column and output as following (expected results):

I tried the following:

Any help will be appreciated.

Advertisement

Answer

You can do aggregation :

EDIT : Removed where clause & do concat.

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