Find out the 3rd highest salary?

Answer Posted / himanshu

SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP 3 salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the commands used in sql?

527


What is audit logout in sql profiler?

590


Is and as keyword in pl sql?

515


Does a user_objects view have an entry for a trigger?

570


Why do we need cursor in pl sql?

651






how to enter numeric values as hex numbers? : Sql dba

570


What company owns postgresql?

562


Why is there a need for sqlcode and sqlerrm variables?

587


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

572


List and explain the different types of join clauses supported in ansi-standard sql?

825


Does user triggers have entry for trigger with compilation errors?

600


How to write a query to show the details of a student from students table whose

542


What are instead of triggers?

626


What problem one might face while writing log information to a data-base table in pl/sql?

558


What is synchronized subquery?

597