Is there a way to calculate age on the fly during a select statement based off of a date of birth field?
this is what I have so far:
select name, year(date()-year(dob)) as age
from users;
Is there a way to calculate age on the fly during a select statement based off of a date of birth field?
this is what I have so far:
select name, year(date()-year(dob)) as age
from users;