Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Write a SQL query to find the nth highest salary without using the LIMIT clause.
Answer: SELECT salary FROM Employee e1 WHERE n-1 = (SELECT COUNT(DISTINCT salary) FROM Employee e2 WHERE e1.salary <= e2.salary);
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook