I need to calculate the age of a "customer" from their date of birth.
I have tried to use the following:
DATEDIFF(year, customer.dob, "2010-01-01");
But it does not seem to work.
Any ideas? I KNOW it is going to be something simple!
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…