Add Months [message #262373] |
Sun, 26 August 2007 12:47 |
ravi.megharaj
Messages: 3 Registered: August 2007
|
Junior Member |
|
|
Hi,
If anybody could help me out in writing a procedure for the following case:
I need to get the output based on count or sum of a particular field along with each month ends. Example:
Month End Count
07/31/2007 10
06/30/2007 20
05/31/2007 40
04/30/2007 100
.
.
.
.
08/31/2006 20
07/31/2007 as Start_Date and 08/31/2006 being End Date.
I would like this procedure to be written using cursors rather that direct insert.
Please provide me the solution for the same.
Thx in Advance
|
|
|
|
|
|
|
|
|
|