Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

TSQL: Multiple Pivot scenario

$
0
0

HI Friends,

Please find below tabl, I want to pivot Column1 and Column2 Both, 
Please find resultSet below it.

TableA
IDNamecolumn1Value1column2value2
1Jonha1p10
2Ramanb2q11
3Chrisc3r12
4Nickd4s13
ResultTable
IDNameabcdpqrs
1Jonh1   10   
2Raman 2   11  
3Chris  3   12 
4Nick   4   13

Please help me with the queries.

THanks In Advance,

Parixit


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>