Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / reddy
select distinct (a.sal) from emp a where &n = (select count
(distinct(b.sal) from emp bmwhere a.sal<=b.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the command used to fetch first 5 characters of the string?
can a stored procedure call itself or recursive stored procedure? : Sql dba
how would concatenate strings in mysql? : Sql dba
What is out parameter used for eventhough return statement can also be used in pl/sql?
explain advantages of innodb over myisam. : Sql dba
what is subquery? : Sql dba
Is sql database free?
Why query optimization is needed?
What is form and report?
what is the difference between undefined value and null value? : Sql dba
What is count * in sql?
What is a column in a table?
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
what is blob? : Sql dba
what is the difference between nested subquery and correlated subquery?