Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / surajit pathak
select * from emp e1
where 2>(select count(1) from emp e2
where e2.sal>e1.sal)
order by sal desc
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Is sql a backend?
How to pipe multiline string to isql?
What is the difference between delete, truncate and drop command?
What are the most important characteristics of pl/sql?
What are the different types of dbmss?
How do you add a column to a table?
How do you optimize a query?
What is the difference between truncate and drop statements?
What steps server process has to take to execute an update statement?
How many sql are there?
How do you know if a relationship is 2nf?
Explain table and field in sql?
How long does it take to learn pl sql?
What is the difference between local and global temporary table?
what is self join and what is the requirement of self join? : Sql dba