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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Convert records to column names

Author  Topic 

chinkee
Starting Member

1 Post

Posted - 2003-04-20 : 07:44:37
Good day!

How can I convert table records into table column names during runtime?

For example, in the Employees table of the Northwind database, I have records Davolio,Fuller,Leverling,Peacock, etc.. in the column name LastName.
Now, I want to make these lastname records into column names in another table.

Thank you very much for your help!

robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-04-20 : 07:51:29
http://www.sqlteam.com/SearchResults.asp?SearchTerms=cross+tab

Go to Top of Page
   

- Advertisement -