I have this situation where I have date-of-birth stored in database eg. 1990/03/15. I want to find out info. of records whose age is between 20 & 30. How should I write this query?
I have tried this: I get age of all candidates using this query:
SELECT TIMESTAMPDIFF(YEAR,dob,CURDATE()) as age FROM `profile`
How to use it to get list of all candidates between age 20 & 30?