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 |
ladiaocb
Yak Posting Veteran
57 Posts |
Posted - 2008-08-26 : 11:49:03
|
Hey guys I need help with a query. I have the following tableTBL1eid-------userid-------edatetime------escore1---------30-----------8/1/2008-------1002---------30-----------8/6/2008-------953---------30-----------8/2/2008-------974---------30-----------8/15/2008------88I am trying to return a result that displays the scores and dates on a single row:userid---1stScore---1stdate-----2ndScore---2ndScoreDate-----30-------100--------8/1/2008----97---------8/2/2008---As always any help is greatly appreciated! |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-08-26 : 11:57:09
|
search for PIVOT or CROSS TAB in this forum. Lots of example there KH[spoiler]Time is always against us[/spoiler] |
 |
|
ladiaocb
Yak Posting Veteran
57 Posts |
Posted - 2008-08-26 : 12:50:58
|
Found a lot of great examples thanks! |
 |
|
|
|
|