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
What is a full join sql?
What does select * from mean in sql?
What does (+) mean in sql joins?
Can unique keys be null?
How do I count records in sql?
What is the use of sqlerrd 3?
What is partition in sql query?
What is the difference between clustered and non-clustered indexes?
What is the use of procedures?
What is procedure explain with program?
What are secondary keys?
what is sql? : Sql dba
What are conditional predicates?
What is rownum?
What is graph sql?