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...

select the 3rd maximum salary from sql server database if 4
(just an example In practically I may not know the exact
situation) of the highest salaries are equal.

Answer Posted / sunil nair

SELECT EmpID,Salary from tblSalary a where 3=(select count
(distinct EmpID) from tblSalary b where b.empid>=a.empid)

For any database

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain user defined views?

911


Hi all, can any one please tell me the difference between sql server 2008 and orace 9i

1901


What is the sql case statement used for?

1034


What is store procedure? How do they work?

953


Why does sql studio use a single registered database repository? : sql server management studio

952


What is the Difference Between Primary and Foreign Key?

957


What are “phantom rows”?

1608


What command do we use to rename a database?

1010


Can we install sql server 2016 on windows 7?

1072


How real and float literal values are rounded?

1095


How to create an inline table-valued function?

907


Can You Use Data Mining Models In Ssrs?

139


What is difference between clustered index and non clustered index?

1027


What are the Advantages of using CTE in sql server?

1041


How would you add a section to a table?

966