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

What are the types of normalization?

1032


What is the difference function and stored procedure?

1068


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

1044


What are the different types of collation sensitivity?

1129


Do I need a report server to run reports in my application?

165


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

1220


What are types of storage modes? : sql server analysis services, ssas

1047


What stored by the master?

955


What is nonclustered index with included columns ?

969


What is @@rowcount in sql?

1011


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1403


What is service broker?

1008


What according to you is the difference between mysql and sql server performance?

1093


How many types of stored procedures are there in sql server?

1019


Can we insert data if clustered index is disabled?

945