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 ? | 44 Yes | 12 No |
Post New Answer View All Answers
Is primary key clustered index?
What is keys and its types?
What is multiple partition?
What is a full join?
What is the difference between inner join and natural join?
Can we use loop in sql?
Does normalization improve performance?
What is procedure explain with program?
what is the difference between blob and text? : Sql dba
What is the mutating table and constraining table?
What is bulk collect in pl sql?
how many values can the set function of mysql take? : Sql dba
How many sql are there?
What are the types of queries in sql?
How do I view tables in sql developer?