Question: how to calculate difference between two dates in months in sql?
Answer: The difference in months as output by DATEDIFF(m, ..., ...)
Plus the day of the last date divided by the number of days in that month.
Minus the day of the first date divided by the number of days in that month.