with ordered_salary as ( SELECT name, salary, ROW_NUMBER() OVER(ORDER BY salary DESC) rn FROM salary_table ) select name, salary from ordered_salary where rn = 5
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)