MONTHS_BETWEEN function (extension)
Syntax
MONTHS_BETWEEN ( date_expression, date_expression )
Description
The scalar function MONTHS_BETWEEN computes the number of months between two date values corresponding to the first and second arguments.
Example
SELECT MONTHS_BETWEEN (SYSDATE, order_date)
FROM orders
WHERE order_no = 1002 ;
Notes