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 |
sgadmin
Starting Member
8 Posts |
Posted - 2007-08-01 : 13:20:22
|
Hi,I have a large table containing contract information like this:CTRCID ITEMID SERIAL23 520 ABCDEF23 40023 30023 22013 300 GHIJKL13 560I need to provide output in one table with one row per Serial like this:CTRID |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
sgadmin
Starting Member
8 Posts |
Posted - 2007-08-01 : 13:31:28
|
Oops; sent too soon...here goes again: Hi,I have a large table containing contract information like this:CTRCID ITEMID SERIAL23 520 ABCDEF23 40023 30023 22013 300 GHIJKL13 560I need to provide output in one table with one row per contract like this:CTRID ITEMIDCA1 ITEMID2 ITEMID3 ITEMID4 ITEMID 5 SERIAL23 520 400 300 220 ABCDEF13 300 560I can do a case statement to set the ITEMID#'s based on the value, however, I need to get the information in one row vs multi rows. |
 |
|
|
|
|