Hi,
here is my sql table...

I want output somthing like this...
How to do this using sql join or CTE or subquery.
can any one help me to solve this query?

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Laxmidhar SahooRank #383 · 6.6K reputationPosted May 8, 2019, 8:25 PM EDT
Anilananda ChakraborttyRank #3,903 · 381 reputationPosted May 8, 2019, 8:31 PM EDT
Madan ShekarRank #428 · 5.9K reputationPosted May 8, 2019, 8:38 PM EDT
Anilananda ChakraborttyRank #3,903 · 381 reputationPosted May 8, 2019, 8:46 PM EDT
Suraj KumarRank #353 · 7.1K reputationPosted May 24, 2019, 2:16 AM EDT