I'm having issues trying to create a MySQL function to calculate the age trough a date given, I know I may get told to use a procedure to do it, but am forced to do it in a function.
PS ik there's (SELECT DATEDIFF(YEAR,DATE()) CURDATE())) but can't use it in a function so.
Any ideas of how should I do it?
Best regards, Engineer