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

write a query for the fifth highest salary?

Answer Posted / piyush gupta

select distinct(a.sal) from emp a where 5=(select
count(distinct(b.sal)) from emp b where a.sal<=b.sal)


you can this query for nth highest salary
replace 5 with any number

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the syntax of exception handling used in DBMS?

1199


5. Explain about relational algebra.

2182


Which Statement would you use to remove the EMPLOYEE_Id_PK PRIMARY KEY constraint and all depending constraints from the EMPLOYEE table?

1116


issues involved in modeling and building data werahouses

1964


What is the DIF format and when we will use in teradata

2495


WHAT IS CARDINALITIES OF JOIN?

2363


how can you perform lookup range in lookup stage expalin in detail?

1938


What does currency type mean in database?

1195


How many indexes can be created on a table?

1153


What are the disadvantages of views in a database?

1056


What is dialect in database?

976


Does facebook use graph database?

1030


What is odm database?

1010


What is the best database software for small businesses?

920


how can we view column head in first page but not in remaining pages?

2041