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 2005 Forums
 Transact-SQL (2005)
 Pivot Table

Author  Topic 

u2p_inst
Yak Posting Veteran

78 Posts

Posted - 2007-09-06 : 23:41:42
Dear All

I have a table below:

SEQ_nbr | Cust_Name | Month
================================
1 | Gilbert | 4
2 | Gilbert | 5
3 | Gilbert | 7
1 | Martin | 3
2 | Martin | 9

is it possible to create view using PIVOT query and the result is:

| 1 | 2 | 3 =======>>>> Seq_nbr
==========================
Gilbert | 4 | 5 | 7
Martin | 3 | 9
:
:
:
Cust_Name

Thanks Before

oh

Kristen
Test

22859 Posts

Posted - 2007-09-07 : 02:38:12
See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Pivot+table,More+Dynamic+CrossTabs

Kristen
Go to Top of Page
   

- Advertisement -