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 nth highest salary

Answer Posted / lakshmi reddy

To get nth highest salary from Employee table:
select * from Employee e where n=(select COUNT(distinct sal)
from Employee e2 where e2.Sal>e.Sal)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are page splits? : SQL Server Architecture

1020


What is the primary use of the model database?

1035


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

1077


Does partitioning improve performance sql server?

918


what is a deadlock? : Sql server database administration

1008


What is the data type of time?

919


Explain hostprotectionattribute in sql server 2005?

972


query processing

2115


How you can get the list of largest tables in a database?

959


What is the usage of sign function?

1055


What does dml stand for?

922


How to assign null values to variables or columns?

934


How many instances per computer are there in sql server 2000?

1023


What is an expensive query?

896


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

917