oleanganesh
MIS
Hi
How to select records for each month of current year in stored procedure. (starting from 1st month of the current year to current month)
for eg: i have a sample query for a specific month with hardcoded date range
select sum(subtotal) from table1 where (invodate >= '09/01/2004' and invodate <= '09/30/2004') and (ordrdate >= '09/01/2004' and ordrdate <= '09/30/2004')
I need to display the subtotal for everymonth in a report
Any help appreciated
Thanks
How to select records for each month of current year in stored procedure. (starting from 1st month of the current year to current month)
for eg: i have a sample query for a specific month with hardcoded date range
select sum(subtotal) from table1 where (invodate >= '09/01/2004' and invodate <= '09/30/2004') and (ordrdate >= '09/01/2004' and ordrdate <= '09/30/2004')
I need to display the subtotal for everymonth in a report
Any help appreciated
Thanks