how to find the second highest salary from emp table?
Answer Posted / erp_guns
SELECT MAX(sal) from emp a where &n=(select COUNT(DISTINCT
(SAL)) from emp b where a.sal<=b.sal)
| Is This Answer Correct ? | 39 Yes | 22 No |
Post New Answer View All Answers
How do you copy a table in sql?
What is difference between joins and union?
Is nosql relational?
What's the difference between inner join and left join?
Is pl sql and postgresql same?
how do you tune the slow running queries in oracle db , explain the methodology
What is equi join in sql?
What are the advantages of pl sql?
How exception handling is done in advance pl/sql?
What is the difference between subquery and correlated query?
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
how many sql ddl commands are supported by 'mysql'? : Sql dba
Are pl sql variables case sensitive?
How to add a column ‘salary’ to a table employee_details?
What are the indexing methods?