How to convert row to column in SQL 
How to convert Row to column in ms-ssql
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
How to convert row to column in SQL 
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
Piyush PansuriyaRank #454 · 5.5K reputationPosted Aug 6, 2021, 12:43 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 6, 2021, 8:22 AM EDT
Vinitha TRank #8,005 · 230 reputationPosted Nov 22, 2021, 10:04 AM EST
geetha geethaRank #7,130 · 248 reputationPosted Nov 24, 2021, 7:55 AM EST
You have convert row into column using the pivot.
Pivot - which is used to turn the unique data from one column into multiple columns in the output.This is also mean by transforming the rows into columns.
Instead of pivot we can also use dynamic pivot.