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)
 query help

Author  Topic 

mikejohnson
Posting Yak Master

153 Posts

Posted - 2004-03-04 : 15:45:21
if my data in my table is setup like this:

id store promo units week
-- ----- ----- ----- ----
1 test 1 5 2/29/04
2 test 2 10 2/29/04

how would i write an sp to kick out a report showing this:

id store promo1 promo2 week
-- ----- ------ ------ ----
1 test 5 10 2/29/04

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2004-03-04 : 16:02:40
Check Rob's article on Crosstabs: http://www.sqlteam.com/item.asp?ItemID=2955

--------------------------------------------------------------
Find more words of wisdom at [url]http://weblogs.sqlteam.com/markc[/url]
Go to Top of Page
   

- Advertisement -