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

How do I trace sql profiler?

1043


Which is faster joins or subqueries?

1036


What is oracle pl sql developer?

1024


What is sql in java?

1134


Explain how to use transactions efficiently : transact sql

1017


What do you mean by table in sql?

1045


What are user defined functions?

1063


What is sql data?

1034


how can we repair a mysql table? : Sql dba

1041


what is the functionality of the function htmlentities? : Sql dba

1005


How do you use join?

993


What is the source code of a program?

1119


What are the different types of joins in sql?

1908


How to install oracle sql developer?

1096


What is sql not null constraint?

1093