AGE calculation in Teradata

Code:
SELECT (CURRENT_DATE - CAST(dateofbirth AS DATE)) YEAR AS age

OR
SELECT EXTRACT (YEAR FROM CURRENT_DATE) - EXTRACT (YEAR FROM dateofbirth  ) as age

Example:
SELECT (CURRENT_DATE - CAST('1988-11-07' AS DATE)) YEAR AS age

OR
SELECT EXTRACT (YEAR FROM CURRENT_DATE) - EXTRACT (YEAR FROM '1988-11-07' ) as age

Output:
age
24