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 / vinay singh

To find any number of Salary..

Select * From Table E1 Where
(n-1) = (Select Count(Distinct(E2.Sal)) From Table E2
Where E2.Sal> E1.Sal)


**Vinay Singh

Is This Answer Correct ?    8 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert data into a view?

1061


Why should you use or avoid select * statements?

965


How to get nth highest salary from employee table.

1102


Explain can SSRS reports Cache results?

149


A trigger can reference objects outside the current database? State true or false.

942


What is the importance of concurrency control?

1175


Which Model uses the SET concept

932


Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

911


What are the types of resultset?

914


Why do we need different type of parameter?

997


Why use “nolock” in sql server?

980


What is thr feature of change data capture?

916


Mention the uses of stored procedures.

927


How to name query output columns in ms sql server?

915


Can you insert NULL in unique column?

1092