Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / anil_abbireddy
select * from emp a where 2=(select count(distinct sal)
from emp b where a.sal<=b.sal)
| Is This Answer Correct ? | 30 Yes | 8 No |
Post New Answer View All Answers
Mention what does plv msg allows you to do?
What does (*) mean in sql?
What is a data manipulation language?
Which query operators in sql is used for pattern matching?
What is an intersect?
How do I find duplicates in two columns?
Does sql backup shrink transaction log?
How to revise and re-run the last sql command?
What are the most important characteristics of pl/sql?
what are null values? : Sql dba
How to sort the rows in sql.
Explain table and field in sql?
Which is faster truncate or drop?
What is a sql select statement?
How can I change database name in sql?