I am using MONTHS_BETWEEN function to get the difference between 2 dates , but the result is not 100% correct i think this function mines 1 day . i tried this SQL
SELECT MONTHS_BETWEEN(TO_DATE('20170630','YYYYMMDD'),
TO_DATE('20170501','YYYYMMDD') ) "Months"
FROM DUAL;
here in this case it should return 2
but the result is 1.93548387096774
So, Any help ?? or is there any way to add 1 more day to date??