Hello! It is necessary to display the first and last name and the maximum age I don't have the age column, I will calculate max(age) like this:
select max(age) from (select DATEDIFF (YY, BirthDate, GETDATE()) - CASE WHEN DATEADD(YY, DATEDIFF(YY, birthdate, GETDATE()), birthdate) > GETDATE() THEN 1 ELSE 0 END AS [age] from Employees) x How can I, besides the maximum age, deduce the name / surname of the owner of this age? ps When in the first request, I specify, in addition to max(age) , also firstname , lastname does not work