Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / satya_k21
Hi,
Select * from emp e where 2>= (select count(sal) from
emp e where sal>=e.sal) order by desc.
Let me know if it is wrong..
Regards,
Satya.K
Is This Answer Correct ? | 11 Yes | 16 No |
Post New Answer View All Answers
What view means?
Why is the cursor important?
How do you know if a relationship is 2nf?
What is the difference between union and union all command?
is mysql query is case sensitive? : Sql dba
what is the difference between primary key and unique key? : Sql dba
What does pragma mean?
What is sql used for?
Which command is used to delete a package?
What is 19 null in sql?
What are the key differences between SQL and PL SQL?
Why use subqueries instead of joins?
How do I run pl sql in sql developer?
Explain sql data types?
What are aggregate and scalar functions?