I have already googled for this
I have a Table with following structure in SQL 2000 ID ContactName Designation 1 A CEO 2 B ABC 3 C DEF 4 D GHI
I need the Output as follows
ContactName1 Contactname2 ContactName3 ContactName4 A CEO B ABC C DEF D GHI
Any Suggestions ?
It occurs to me that a lot of the examples are for cross tab queries involving aggregation, which yours does not appear to need. While I do not necessarily condone Dynamic SQL, the below should give you the results you want.