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
What is a full join?
How to set up sql*plus output format in oracle?
What is the use of sqldataadapter?
How do we use distinct statement? What is its use?
Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?
Why do we create views in sql?
What is a temp table?
What are pl sql data types?
The select into statement is most often used to create backup copies of tables or for archiving records?
Why we use joins in sql?
What is rtm stands for?
What is thread join () in threading?
What kind of join is join?
What does varchar include?
What are character functions in sql?