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 / kiran

select empid,salary
from (select distinct empid,salary,
Dense_Rank() over(order by salary desc) as Rank
from dbo.EmpSalary) b
where b.rank=3

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the usage of sign function?

1123


What is etl - extraction, transformation, and loading?

926


Explain Normalization and DE normalization

1121


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

1013


please differentiate between delete and truncate?

1003


What happens to a trigger with multiple affected rows?

961


What are different types of views?

953


What options are available to audit login activity? : sql server security

1159


Where do we use trace frag?

1029


What are the common performance issues in sql server?

936


which backup strategy you are following at ur company

2150


Why are you getting errors when creating a new odbc dsn?

1234


What are subquery and its properties?

1060


Can you roll back the ddl statement in a trigger?

990


What is the sql server 2000 version number?

1088