a query to select maxmun 3 salaries of employee table

Answer Posted / krishna kumar r

SELECT E1.ENAME,E1.SAL FROM EMP E1 WHERE 3>(SELECT COUNT(*)
FROM EMP E2 WHERE E2.SAL>E1.SAL ) ORDER BY SAL DESC

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we connect to ORACLE db using Windows Authentication?

731


What is a proxy class?

570


Which dictionary tables and/or views would you look at to diagnose a locking issue?

1495


How to use "out" parameter properly?

640


How do you get nicely formatted results from an oracle procedure that returns a reference cursor?

562






Can we write insert statement in function in oracle?

543


Explain rename?

564


WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?

1812


What are the advantages of oracle?

559


Does oracle partitioning improve performance?

563


What is a static data dictionary in oracle?

579


How to estimate disk space needed for an export job?

572


How to apply filtering criteria at group level in oracle?

600


What is an index associated with a constraint?

560


Calculate difference between 2 date / times in oracle sql?

584