in mysql how can i show people who are over 40 years old. I have a column that contains birth dates.
Mysql:how can i show people who are over 40 years old
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
in mysql how can i show people who are over 40 years old. I have a column that contains birth dates.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Rajanikant HawaldarRank #107 · 20.6K reputationPosted Aug 3, 2022, 1:52 AM EDT
Try,
Select personname, dob from persontable where dob <= date_sub(NOW(), INTERVAL 40 YEAR);
Vishal YelveRank #178 · 13.6K reputationPosted Aug 3, 2022, 2:52 AM EDT