Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why should I use oracle database?

996


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2972


Write a trigger example in oracle?

1068


What is a nvl function? How can it be used?

1034


Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables

2065


What is coalesce function?

1078


How to select all columns of all rows from a table in oracle?

1055


What is a nvl function?

1037


What is connection pooling in oracle?

973


How to find out what oracle odbc drivers are installed?

1042


How to insert multiple rows with one insert statement in oracle?

1091


How do you store pictures in a database?

1008


Why does oracle 9i treat an empty string as null?

1059


 How to use an oracle sequence generator in a mapping?

1076


Explain the use of rows option in imp command.

1087