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

SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP 3 salary
FROM tblSalary
ORDER BY salary DESC) S
ORDER BY salary

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain boyce and codd normal form(bcnf)?

895


What is a trigger and types of a trigger?

926


Write a query to find 5th highest amount paid from the customer table.

881


Which sql server is best?

955


What are the characteristics of modern DBMS?

1033


What is the difference between delete and truncate statements?

1020


Explain the various types of concurrency problem?

1139


What is Extended user-defined?

898


What is a dataset and what are the different types of datasets?

125


How many clustered indexes there can be on table ?

990


Explain the difference between function and stored procedure?

900


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

982


How to apply filtering criteria at group level with the having clause in ms sql server?

947


What is correlated subquery in sql server?

1019


Can coalesce return null?

948