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)
 Sql server 2000

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-09-21 : 22:43:17
Ron writes "I made store procedure in sql-2000 its between two date output say 25th week to 32 week, it show result like given below
week count amt
25 7 200
26 16 300
27 18 700
28 20 900
only show that result in which week there's count occured, i want output like
week count amt
25 7 200
26 16 300
27 18 700
28 20 900
29 0 0
30 0 0
31 0 0
32 0 0
means when no occurence of count the query append blank row with 0 value.
that's all i need, pls send the ans asap,
thanx
Ron"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-09-22 : 01:21:24
See if this helps you
http://weblogs.sqlteam.com/jeffs/archive/2005/09/12/7755.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -