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

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

1118


What is a transaction and why is it important?

1091


What is order of B+tree?

1107


What is row_number () and partition by in sql server?

1080


What do you understand by mirroring and mention the advantages of the mirroring?

1068


What are the Advantages of using CTE in sql server?

1119


What is similarity and difference between truncate and delete in sql?

1102


What is sql injection and why is it a problem? : sql server security

1133


Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?

118


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

1048


What are the differences between char and varchar in ms sql server?

1066


What do you mean by 'normalization'?

1061


Explain what are the authentication modes in sql server?

1018


What is sqlservr.exe - process - sql server (sqlex?press)?

1110


What are dml (data manipulation language) statements in ms sql server?

983