In oracle i can find out no:of months between using MONTHS_BETWEEN function.
In postgres i am using extract function for this. eg.like
select ex
Unfortunately it seems not, because extract(month ...) returns the number of months modulo 12.
extract(month ...)
There is one small simplification you can make; remove the first parameter of age() - the default is age from current_date, so these two are equivalent:
age()
current_date
age(current_date, '2012-12-09') age('2012-12-09')