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
Write a sql select query that only returns each name only once from a table?
How do I save a sql query?
How to write pl sql program in mysql command prompt?
Does varchar need length?
what is the use of friend function? : Sql dba
what are the 'mysql' command line arguments? : Sql dba
Which are sql * plus commands?
What is a common use of group by in sql?
what is a trigger in mysql? Define different types of trigger. : Sql dba
How do I view stored procedures?
What company owns postgresql?
What is a composite primary key?
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
Why we use pl sql?
What is the purpose of cursors in pl/sql?