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

Explain about sql server login?

1026


What is the difference between clustered and non-clustered indexes in ms sql server?

936


Do you know what is user defined datatypes and when you should go for them?

907


Do you know the cursor optimization tips?

929


Can you index views?

851


How to enter unicode character string literals in ms sql server?

1016


If any stored procedure is encrypted, then can we see its definition in activity monitor?

935


What do you mean by normalisation?

962


Can group functions be used in the order by clause in ms sql server?

961


Can the query output be sorted by multiple columns in ms sql server?

934


What is analysis service repository?

968


What is the default fill factor value?

1010


Can you explain about buffer cash and log cache in sql server?

904


What is multilevel indexing?

877


Explain the difference between functions and stored procedures in sql server?

918