I am writing a stored procedure whcih accepts 2 date input parameters
@fromDate DATEIME
@toDate DATEIME
and returns a table of 3 columns
DispayDate, fromDate, toDAte
for example if
@fromDate = '01/20/2010
@toDate = '03/15/2010
then the return table should look like
DispayDate fromDate toDAte
Jan-10 01/20/2010 01/31/2010
Feb-10 02/01/2010 02/28/2010
Mar-10 03/01/2010 03/15/2010
The idea is we divid the days between start and end date based on month
hope my question is clear
Thanks
@fromDate DATEIME
@toDate DATEIME
and returns a table of 3 columns
DispayDate, fromDate, toDAte
for example if
@fromDate = '01/20/2010
@toDate = '03/15/2010
then the return table should look like
DispayDate fromDate toDAte
Jan-10 01/20/2010 01/31/2010
Feb-10 02/01/2010 02/28/2010
Mar-10 03/01/2010 03/15/2010
The idea is we divid the days between start and end date based on month
hope my question is clear
Thanks