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

How to find only %th Highest Sal

Answer Posted / abhishekjaiswal

SELECT A.FIRST_NAME,
       A.SALARY
   FROM EMPLOYEES A
   WHERE 3 = ( SELECT COUNT(*) -- Replace 3 with any value of (N - 1)
               FROM EMPLOYEES B
               WHERE B.SALARY > A.SALARY)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql a backend language?

1144


What are the different types of dbmss?

1054


Does google use sql?

1003


Why is partition used in sql?

1180


Define join and name different types of joins?

1052


Mention what is the function that is used to transfer a pl/sql table log to a database table?

1028


What is the difference between union and union all command?

1143


What does rownum mean in sql?

1088


Is stored procedure faster than query?

1016


How does left join work in sql?

1036


what is a composite key ? : Sql dba

1098


What does the hierarchical profiler does?

1122


What is right join in sql?

1151


List the different type of joins?

1113


What is nvl?

1108