Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sanjay5219
Posting Yak Master
240 Posts |
Posted - 2010-07-30 : 12:13:00
|
Dear All,I have this table in SQLDate Student Att_Status1-Jul d P2-Jul f L3-Jul r P4-Jul f L5-Jul f PL6-Jul s P7-Jul w P8-Jul fg P9-Jul h P10-Jul d P11-Jul s Pand i want result in this formatStudent Date1 Date2 Date3 Date4 Date5 Date6 Date7 Date8Name1 P Name2 P Name3 L Name4 L Name5 L L Name6 Name7 Name8 Please help me |
|
pk_bohra
Master Smack Fu Yak Hacker
1182 Posts |
|
ewomack
Starting Member
33 Posts |
Posted - 2010-08-05 : 13:28:28
|
Yes, pivot is your answer - there are loads of resources out there on this. Search the internet for SQL Pivot and you'll get boatloads.Ed Womackwww.getmilked.com |
 |
|
|
|
|