Skip to content
Advertisement

SQL group two value in a same row

I have this query

And I got this result

Instead of this I want to modify my query to get this result :

They tell me about pivot function sql but I dont know how it works .

Thanks for helping

Advertisement

Answer

One option would be using pivot keyword :

Demo

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