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 / sumesh.s.g

--Sumesh.S.G--
SELECT TOP 1 salary
FROM (select top 3 Salary
from dbo.TBL_Employee
order by Salary desc) as TemTable order by Salary asc
--Happy coding--

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.

1044


What are sql dirty pages?

1031


What does it mean to normalize data?

949


What is log shipping? Can we do logshipping with SQL Server 7.0 ?

1004


What is a deadlock and what is a live lock?

1005


Write a program using SQL queries to find a unique entry in a table.

1003


What is the meaning of resultset type_scroll_insensitive?

957


Explain filestream storage of sql server 2008?

1025


What is use of @@ spid in sql server?

1218


How can change procedure in sql server?

1074


What is reference section?

1010


How to create a testing table with test data in ms sql server?

1092


How will you optimize a stored procedure optimization?

1051


What are the different types of backups that exist?

1182


What is the difference between varchar and nvarchar datatypes?

1093