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 / sujit pingale

Ans: select distinct(a.salary) from customers a where &n =
(select count(distinct(b.salary)) from customers b where
a.salary <= b.salary);

It will ask you to enter number in input box which salary
you want to see

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between union and union all command?

1086


Explain the purpose of %type and %rowtype data types with the example?

987


What is int identity in sql?

1133


What is cartesian join in sql?

1116


How many types of index are there?

1030


which types of join is used in sql widely? : Sql dba

978


What is cursor status?

1186


What are the types of records?

988


What does where 1/2 mean in sql?

1062


How do you write a subquery?

1023


What is varchar example?

1022


Does pl sql work in mysql?

976


how do you control the max size of a heap table? : Sql dba

976


What is procedure and function in sql?

997


What are the different set operators available in sql?

1022