2
I used the function age()
, below, to calculate age, from a date stored in a table:
select pessoa.*, age(data_nascimento) from pessoa;
Returned the range: 27 years 9 months 9 days
It is possible to round this range only to 27 years or 27 years years?
The DBMS used: Postgresql.