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 / sujitpingale

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

Enter value in inputbox. If you enter 1 then it will give
highest salary

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an exception in PL/SQL? What are the two types of exceptions?

1191


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

1132


Are dml statements autocommit?

981


what are the differences between binary and varbinary? : Sql dba

976


Enlist the characteristics of pl/sql?

1737


What are types of joins?

905


What is the usage of sql functions?

1074


Do we need to create index on primary key?

851


What is difference between table and view?

974


What is mutating error in pl sql?

961


Can we use view in stored procedure?

862


what is the use of set statement in tsql? : Transact sql

942


Is coalesce faster than isnull?

906


Is sqlite thread safe?

990


What is difference between my sql and sql?

995