|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, August 12, 2012 7:36 PM
Points: 4,
Visits: 8
|
|
I can't figure this out, Please help... SQL Problem -- We have a table of orders. CREATE TABLE Orders (ordernumber INT, rownumber INT, Description VARCHAR(10)) The rownumber is guaranteed to always between 1 and 5 and is always filled in consecutively. Write SQL that will return the rownumbers as column headers, with the description as the column values. Output similar to below:
Order# Row1 Row2 Row3 Row4 Row5 10 Desc1 Desc2 20 Desc1 Desc2 desc3
Please help... Thanks!
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: 2 days ago @ 1:36 PM
Points: 887,
Visits: 2,062
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, August 12, 2012 7:36 PM
Points: 4,
Visits: 8
|
|
| OK, I see, use pivot tab, thanks for the link and your help.
|
|
|
|