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
How many postgresql users are there, worldwide?
how to rename an existing column in a table? : Sql dba
What is scalar and vector?
What is pessimistic concurrency control? : Transact sql
How to select 10 records from a table?
what is the difference between $message and $$message? : Sql dba
Why are indexes and views important to an organization?
What is a field in a database?
What is the difference between pl and sql?
What is a trigger in sql?
What are the usages of sql?
Explian rowid, rownum?
Which language is used in sql?
How to display the records between two range in Oracle SQL Plus?
What is informix sql?