I have a BirthDate column in MySQL database table to store user\'s date of birth. Now I have form in html/php with two fields(1. Age From 2. Age To).
If user want t
It can also be achived by using a sub query:
select * from (select *, TIMESTAMPDIFF(YEAR, birthday, NOW()) as age from table_name) as sub_query where age between 10 AND 20