a query to select maxmun 3 salaries of employee table

Answer Posted / suresh babu

select * from employees a where 3 <= select count(distinct
b.salary) from employees b where a.salary >= b.salary);

This query,which returns the first maximum salary from
employees table.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi

1732


What is literal?

578


Explain the use of compress option in exp command.

540


How many types of database triggers exist?

562


How to count groups returned with the group by clause in oracle?

561






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

1820


21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.

1609


What are advantages of dateset in datastage?

1738


Is it possible to insert comments into sql statements return in the data model editor ?

2061


What do database buffers contain?

557


How to pass a parameter to a cursor in oracle?

584


What is the difference between formal parameters and actual parameters?

536


What happens if you use a wrong connect identifier?

493


How to drop a stored function?

670


How to create a new view in oracle?

601