Skip to content
Advertisement

query to convert column to row in sql server

need to convert this column to row

acutal output

need query to be

Advertisement

Answer

If you want four columns, you can use row_number() or pivot:

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