Skip to content
Advertisement

One value for a group of columns in sql

I have the columns like this, all columns coming from three different tables.

i want the columns like

Can you help me with this?

Thanks

Advertisement

Answer

i am just enhancing Tim answer by adding lag() window function

DEMO

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