I'm trying to find the oldest person at my table. And I have all person's birthdates.
I write code like this:
SELECT TIMESTAMPDIFF(day, birthdate, '2021-09-12') AS 'Age'
FROM table
ORDER BY age
limit 1
but I think this is hard-coding. How can I improve my code?