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

how to find the second highest salary from emp table?

Answer Posted / ravi

SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP n salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary

where n is the nth highest salary

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use join in subquery?

1095


What are aggregate and scalar functions?

1025


What are the advantages of indexing?

986


what is the difference between sql and t-sql? : Transact sql

1085


What is the difference between the implicit and explicit cursors?

1052


What is a full join sql?

1057


Does view store data in sql?

969


Define union, minus, union all, intersect ?

1006


explain what is mysql? : Sql dba

1082


what are date and time data types in mysql? : Sql dba

971


How many types of cursors supported in pl/sql?

1193


What is Histogram?

1559


Can you load data into multiple tables at once? : aql loader

1066


Is sql similar to python?

976


How do you delete a table?

1075