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...

There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........

Answer Posted / pavan

try this one....


select * from emp where emp_Id = (select emp_Id from emp
order by sal)
and count(*) < 6;

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dbrm? When it will be created?

1034


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

9223


How to test SQL -911 error while developing COB-DB2 program

7585


How do I delete a table in database?

1029


What is the advantage in De-normalizing tables in DB2?

1185


How to execute stored procedures?

1135


What is db2 purescale?

1012


How do you concatenate the firstname and lastname from emp table to give a complete name?

1077


What is dbrm in db2 database?

1125


How connect db2 database to datastage?

1249


List some fields from sqlca?

1062


Are view updateable?

1051


What are union and union all?

986


Why do we use cursor?

1106


How to check table size in db2 sap?

1045