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

T-SQL - formatting columns according to the value size in a column to content it in a single row

$
0
0
I had sql result shown below...  

ProjectNO.     Projectname      Client    Programmers
01              ave             zica       dee
01              ave             zica       law
01              ave             zica       amy
01              ave            rowan      dee
01              ave            rowan       law
01              ave             rowan      amy

Now how would I represent this into SQL

ProjectNO.  Prjtname   Clt1   Clt2    Prog1  Prog2  Prog3
01             ave        zica   rowan   dee    law    amy
 
I was confused how to group them all according to Project name and Number....... How can I achieve second format. in SQL query




Viewing all articles
Browse latest Browse all 23857

Trending Articles



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