Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / naresh
select sal from emp e where 2= (select count(distntsal) from
emp y where e.sal<=y.sal);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is memory optimized?
What is difference between ms sql and mysql?
What is a heap in sql?
Describe sql comments?
How to place comments in pl/sql?
What is delete command in sql?
Does truncate release storage space?
what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba
what is a trigger in mysql? Define different types of trigger. : Sql dba
How does a self join work?
Is sql a oracle?
what are all the different normalizations? : Sql dba
How many sql are there?
What are the methods of filing?
What steps server process has to take to execute an update statement?