I am trying to calculate how old is a person in a database. Let\'s suppose to have this simple table:
student(id, birth_date);
Where
select id, floor(datediff(curdate(),birth_date) / 365) from student
What about flooring the result to be an integer?