If, the user select start-month as march and end-month as december. the database should provide the data related to mentioned date ranging from march to december.
Can you suggest the query for this or any reference for this?
Thanks,
Shail
The month selection is numbers 01 to 12 and this is only for the year Jan 2012 to December 2012. If user select the month 04 as start-month and end-month as 02 then user will be prompted to select end -month greater then start month.
Thanks,
Shail
Ray Paseur
OK, then the constructed data strings for use in the query will consist of a "date" pattern like this.
2012-XX-01 will be the start date, where XX is the client-selected low month.
2012-YY-t will be the end date, where YY is the client-selected high month. The "t" is the date() pattern for the last day of the month.
FROM yourtable
WHERE date_colum between '2012-01-01' and '2012-10-31'