I need to find the difference between two dates to do some calculations based on the result.
Let's say column start_date is having value 1/Jan/2014 and column and end_date is having value 15/Mar/2014. The result I want is following format:
months | days_remain |
----------------------
2 15
I can find MONTH difference and also DAY difference between separately (as 2 Months & 74 days) using TIMESTAMPDIFF function. But how to find out the remaining 15 days ?
This will work for sure.