Check out example codes for "mysql calculate age". It will help you in understanding the concepts better.

Code Example 1

SELECT DATEDIFF(CURRENT_DATE, STR_TO_DATE(t.birthday, '%d-%m-%Y'))/365 AS ageInYears
  FROM YOUR_TABLE t

Learn ReactJs, React Native from akashmittal.com