MONTHS_BETWEEN()

Description of months_between.eps follows

 

Syntax:

MONTHS_BETWEEN(date1, date2)

  • MONTHS_BETWEEN returns number of months between dates date1 and date2

SELECT MONTHS_BETWEEN(MYDATE2, MYDATE) AS RESULT
FROM MYTESTTABLE;

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top