how to find the second highest salary from emp table?
Answer Posted / shankar panda
SELECT DISTINCT(E.SALARY) FROM EMPLOYEES E WHERE 2=(SELECT COUNT(DISTINCT D.SALARY) FROM EMPLOYEE D WHERE D.SALARY >= E.SALARY)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is an extent ? : Sql dba
Can we create a trigger on view?
What is pl sql variable?
How to use distinct and count in sql query? Explain
what is subquery? : Sql dba
What is trigger point?
how can you create an empty table from an existing table? : Sql dba
How do I quit sql?
What do you understand by pl/sql packages?
Can you load data into multiple tables at once? : aql loader
How to return an array from java to pl/sql?
Can we insert data in view?
Why primary key is required?
What are different joins used in sql?
What trigger means?