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
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
Can we rename a column in the output of sql query?
What is crud sql?
what is text? : Sql dba
What is varchar sql?
What is trigger and stored procedure in sql?
What is the primary key?
what is the syntax for using sql_variant_property? : Transact sql
What is thread join () in threading?
Explain about various levels of constraint.
What is rank function in sql?
What does the sign mean in sql?
Which operator is used in query for pattern matching?
How do I order by ascending in sql?
What are the different types of sql commands?