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
How to execute a stored procedure?
How to start oracle sql developer?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
What is a temp table?
How delete all data from all tables in sql?
what is the difference between delete and truncate commands? : Sql dba
Can you sum a count in sql?
What is sqlcommand?
Why do we use function in pl sql?
How would you convert date into julian date format?
What is your daily office routine?
Explain about various levels of constraint.
Define join and name different types of joins?
Can I join the same table twice?
What is where clause in sql?