Find out the 3rd highest salary?
Answer Posted / aarti verma
get the 3rd highest salary:
SELECT DISTINCT salary from employee e ORDER BY salary DESC
LIMIT 2,1;
get the records of employees having 3rd highest salary:
SELECT * FROM employees WHERE salary = (SELECT DISTINCT
salary from employee e ORDER BY salary DESC LIMIT 2,1);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to look at the current sql*plus system settings?
What is sql deadlock?
What is embedded sql what are its advantages?
What is the use of index in hive?
How do I run sql?
how would you enter characters as hex numbers? : Sql dba
Why do we use sql constraints?
Define concurrency control. : Transact sql
Explain correlated query work?
What is basic structure of pl sql?
What is group function in sql?
What are the different types of tables in sql?
what is the difference between group by and order by in sql? : Sql dba
What are reports usually used for?
Does truncate table reset auto increment?