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
How many types of sql are there?
what is denormalization. : Sql dba
what is an index? : Sql dba
How can triggers be used for the table auditing?
How do I view tables in sql developer?
What are the benefits of stored procedures?
How do I kill a query in postgresql?
Why we use triggers in mysql?
How do I create a sql database?
What is the use of sql trace?
Does sap use sql?
What is a primary key? Explain
What is Collation Sensitivity ? What are the various type ?
Explain correlated query work?
What is the difference between the implicit and explicit cursors?