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

What does varchar include?

994


Can you sum a count in sql?

1061


What are types of indexes in sql?

1134


What is primary key and foreign key with example?

982


What is the difference between inner join and outer join?

1040


Mention what is the use of function "module procedure" in pl/sql?

1088


I need a function for a train ticket reservation please answer it thanks in advance

1078


When to use inner join and left join?

1019


How do I run a sql query in pgadmin 4?

1000


Is sql a oracle?

1022


What is the use of non clustered index?

1044


what is the use of double ampersand (&&) in sql queries?

1230


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1176


What is a constraint? Tell me about its various levels.

1247


What does t sql mean?

1002