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
 General SQL Server Forums
 New to SQL Server Programming
 SQL Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-03-02 : 08:04:12
raja writes "That Date stored in the table is

OrderNo OrderDate qty
1 12/12/2005 45
2 02/01/2005 23
3 12/01/2005 64
4 04/02/2005 23


i need monthly wise comparsion and get output like this

Dec 2005-Jan 2006 -42
Jan 2006-Feb 2006 64

can anyone help me"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-03-02 : 08:04:57
Not with the sample data you provided, it does not match the date ranges you've specified in the output.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-03-02 : 09:10:34
quote:
Originally posted by robvolk

Not with the sample data you provided, it does not match the date ranges you've specified in the output.




So.....


What you should do, is read the hint link in my sig, and post that....



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page
   

- Advertisement -