Hi,
I am trying to calculate a persons age using DATEDIFF. I have a column birthdate (ANSII format yyyy.mm.dd).
This is my query that is failing:
select datediff('year', birthdate, now()) from table1 where table1.column1 = 'value'
Can anyone help me modify this to get the age (in years)?
Thanks.
I am trying to calculate a persons age using DATEDIFF. I have a column birthdate (ANSII format yyyy.mm.dd).
This is my query that is failing:
select datediff('year', birthdate, now()) from table1 where table1.column1 = 'value'
Can anyone help me modify this to get the age (in years)?
Thanks.