how to find the second highest salary from emp table?
Answer Posted / sreekanth
SELECT MIN(SAL)
FROM(SELECT distinct SAL FROM EMP
ORDER BY SAL DESC)
WHERE ROWNUM <= :N
where N is the Nth highest salary u want
| Is This Answer Correct ? | 18 Yes | 22 No |
Post New Answer View All Answers
What is clause?
How can a function retun more than one value in oracle with proper example?
What is where clause in sql?
What will you get by the cursor attribute sql%rowcount?
What are sql built in functions?
Explain ttitle and btitle.
Can we use commit inside a trigger?
how to concatenate two character strings? : Sql dba
What is pl sql package?
Is sql workbench free?
What is the maximum rows in csv?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
How do I debug a stored procedure?
what is a record in a database ? : Sql dba
explain the difference between bool, tinyint and bit. : Sql dba