I have the following table:
CREATE TABLE public.employees ( employee_id integer NOT NULL, name text NOT NULL, date_of_birth date, address text, email text, C
you can use age() function like this :
age()
SELECT name, EXTRACT(year FROM age(current_date,date_of_birth)) :: int as age FROM public.employees