how to find the second highest salary from emp table?
Answer Posted / praveenkumar
SELECT salary FROM EMPtable
WHERE salary NOT IN ( SELECT MAX(salary)
FROM EMPtable)
ORDER BY salary DESC
FETCH FIRST ROW ONLY
---
We have verified and its working
fine.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How many types of cursors supported in pl/sql?
What is parallel hint?
What operating systems are supported by oracle sql developer?
What is a table partition?
What is difference between stored function and application function?
what is a composite primary key ? : Sql dba
Is mariadb a nosql database?
Enlist some predefined exceptions?
Explain about various levels of constraint.
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
How to Declare Fixed Length String Value In PL SQL
Is json a nosql?
How can triggers be used for the table auditing?
How to take user input in pl sql?
How can you load microsoft excel data into oracle? : aql loader