Convert Rows Into Columns SQL Server

前端 未结 2 465
生来不讨喜
生来不讨喜 2021-01-25 15:43

I want to convert my output which is like

BachNo|Release Qty 
----------
A     |10
A     |30
A     |40
B     |90
B     |30

I want to transpose

2条回答
  •  囚心锁ツ
    2021-01-25 16:13

    See below mention links

    Efficiently convert rows to columns in sql server

    http://www.databasejournal.com/features/mssql/converting-rows-to-columns-pivot-and-columns-to-rows-unpivot-in-sql-server.html

    Dynamic Pivot in Sql Server

    If still not found search on google there are many much examples on various technical sites https://www.google.co.in/?gws_rd=ssl#q=Convert+Rows+Into+Columns+SQL+Server

提交回复
热议问题