How to calculate maximum age of a male person from a list containing date of birth in sql?
I tried
Select name, datediff(yy, dateofbirth, getdate()) as age
From table
Where gender = male
But I don’t know how to use the max function to get the max age