MONTHS_DIFF
Overview
Returns the number of months between two dates or timestamps. Result = first argument - second argument.
Syntax
Parameters
<end>: DATE or TIMESTAMP type, the minuend.<start>: DATE or TIMESTAMP type, the subtrahend.
Returns NULL if either argument is NULL.
Examples
Related Documentation
- DATEDIFF — general date difference function supporting multiple time units
- WEEKS_DIFF, YEARS_DIFF, DAYS_DIFF
