how to check the 3rd max salary from an employee table?

Answer Posted / radha sri seshu.kolla

1)SELECT MAX(SAL) FROM EMP WHERE LEVEL=3 CONNECT BY PRIOR
SAL>SAL
2)SELECT E.SAL FROM
(SELECT SAL,DENSE_RANK() OVER(ORDER BY SAL DESC)R FROM EMP)
E WHERE E.R=3

9966112520

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which software is used for pl sql programming?

676


How to write a query to show the details of a student from students table whose

753


Is natural join and inner join same?

651


Is full outer join same as cross join?

688


What is pl sql record in oracle?

754






What is the difference between jpql and sql?

780


how can we repair a mysql table? : Sql dba

704


what is recursive stored procedure? : Sql dba

711


Do we need commit after truncate?

810


Explain raise_application_error.

828


What is latest version of sql?

707


what is isam? : Sql dba

766


What is the difference between Union and Union all. Which is faster.

1062


what are the differences between binary and varbinary? : Sql dba

716


how many ways to get the current time? : Sql dba

705