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

find out the third highest salary?

Answer Posted / ashok naik

In Sql server:
Select top 1 ThirdHighest.salary from(
Select distinct top 3 salary from employee order by salary
desc) as ThirdHighest

--example for 4th highest salary in above query put 4
inplace of 3

--example for 5th highest salary in above query put 5
inplace of 3
--and so on for nth highest

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 a nvl function? How can it be used?

1029


What is an external table?

1014


What is SQL access advisor in Oracle?

1186


What privilege is needed for a user to delete rows from tables in another schema?

1066


Is it possible to insert comments into sql statements return in the data model editor ?

2556


What is bind variable in oracle 11g?

1037


What is a subquery?

1120


What is a cursor variable?

1126


How to pass a cursor variable to a procedure?

1107


how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?

5410


How to assign query results to variables?

1050


What are the uses of Database Trigger ?

1715


I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database

2136


In which language oracle has been developed?

1072


When do we use group by clause in a sql query?

1035