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
 Transact-SQL (2000)
 Use SQL to perfomr pivot table function?

Author  Topic 

danyeung
Posting Yak Master

102 Posts

Posted - 2006-04-13 : 12:24:45
I have the following data:

Product Type Hours
Controllers Development 105.0
Controllers Research 1.0
Controllers Sustaining 24.0

How do I use SQL statement to change it to the following?

Product Development Research Sustaining
Controllers 105.0 1.0 24.0

Thanks.
DanYeung

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-04-13 : 15:16:24
If you go to this page:

http://www.sqlteam.com/forums/search.asp

and search for the word "pivot" you will see many, many posts.
Go to Top of Page
   

- Advertisement -