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 findout the 100th maximum salary

Answer Posted / sajid siddiki

SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT
(DISTINCT (b.sal)) FROM EMP B WHERE a.sal < = b.sal);
For Eg:-
Enter value for n: 100
SAL
---------
3700

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of partition table?

1048


What is relationship? How many types of relationship are there?

1188


Is it mandatory for the primary key to be given a value when a new record is inserted?

1200


What are sql functions? Describe the different types of sql functions?

1147


What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql

1004


When are we going to use truncate and delete?

991


Why do we use joins?

1047


What is union, minus and interact commands?

1301


How do you pronounce sql?

1020


How can get second highest salary in sql?

994


Can we create a trigger on view?

901


How to take user input in pl sql?

1168


how many tables will create when we create table, what are they? : Sql dba

1084


what is collation? : Sql dba

1158


how to fetch common records from two tables? : Sql dba

1182