I am using Microsoft SQL Server. I have the following query, which returns, as expected, the selected columns, ranked, and ordered by end_date. end_date is of type datetime.
select
rank() over (order by end_date desc) rownum,
salary, name, end_date
from
employee
order by
end_date desc
How do I modify and/or add to this to extract just the first returned row? Can it be done with a modification to the above query, or do I have to add additional logic?