I've researched about this code:
select *,
year(curdate())-year(dbirth) - (right(curdate(),5) < right(dbirth,5)) as age
from resident_info
having age = 18;
but what i wanted is after getting all info that already 18 I wanted to count them. Is there any way i could enter two query at the same time or any solutiomn for my problem? Thanks a lot