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 the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / balaji

TO FIND THE N-1th HIGHEST SALARY IN EMP TABLE

Select Min(salary) from emptable where salary not in(Select
Min(salary) from emptable)

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the new features in SSRS?

145


How to loop through returning rows?

1088


What is query cost in sql server?

1037


How can you list all the table constraints in a database?

981


What is precedence constraint?

1035


How to get a list of columns in a view using the "sp_help" stored procedure?

1088


Tell me the use of keyword with encryption. Create a store procedure with encryption?

1057


Can two different columns be merged into single column? Show practically?

1121


Can the query output be sorted by multiple columns in ms sql server?

1028


How to use values from other tables in update statements in ms sql server?

1184


What is the difference between mysql and sql server?

1087


Can you force a query to use a specific index?

989


How to list all dsn entries on your local machine using odbc_data_source()?

1089


How to access the inserted record of an event?

1108


What are the security related catalog views? : sql server security

992