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

How to define an oracle cursor variable?

553


How to display employee records who gets more salary than the average salary in the department?

583


How to fetch the row which has the max value for a column?

526


What are the built-in functions used for sending Parameters to forms ?

2832


What is hash cluster in oracle?

586






How many file formats are supported to export data?

645


how to clone 9i Database on to 10g Database.

1814


how do we code triggers , store procedure , Performance tuning and indexing in a Java Project? Pls kindly get me the perfect answer with the code for each....thank you in advance............pls any body kindly help me soon as possible....

1577


How to save query output to a local file?

548


How do we create privileges in oracle?

572


How many types of table in Oracle?

606


How to return top 5 rows in oracle?

530


How to connect to oracle using service name instead of sid?

538


What is the use of oracle?

539


In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col

3694