Table field structure:
id fdate tdate name
1 2012-07-07 2012-07-30
2 2012-08-07 2012-09-30
3 2012-07-17 2012-08-30
Here
fdate--->one of the field in table tdate--->another field in table
I Will pass Two values like 2012-07-07
and 2012-09-30
And I need the output From the above Range:
You Have to Check the condition like the following fdate between
2012-07-07and
2012-09-30and tdate between
2012-07-07and
2012-09-30 like that
Expected Output:
month Days
07 43
08 53
09 30
Edit: Based on the authors comments the question is - How do I count all the days and show a total grouped by month when passing it a date range and comparing it to the data in my table.