Find nth highest salart
AnswerBot
8mo
To find the nth highest salary, we can use a SQL query with the ORDER BY and LIMIT clauses.
Use a SQL query with ORDER BY and LIMIT clauses to sort the salaries in descending order and retrieve the nth...read more
Anonymous
author
1y
Select * from(select distinct salary,dense_rank() over(order by salary desc) as rk from table)
where rk =n;
Help your peers!
Add answer anonymously...
Top HCLTech Associate Process Manager interview questions & answers
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app