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

SELECT MAX(Salary) as 'Salary' from EmployeeDetails
where Salary NOT IN
(
SELECT TOP 1 (SALARY) from EmployeeDetails ORDER BY Salary Desc
)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to place comments in pl/sql?

1162


Can you skip header records while loading? : aql loader

1054


How to Declare Fixed Length String Value In PL SQL

1158


What is trigger point?

1000


What is bind reference and how can it be created?

1021


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

1018


what is a trigger in mysql? Define different types of trigger. : Sql dba

1071


What are secondary keys?

972


How to create an array in pl/sql?

1073


How do I create a sql database?

1005


What are the triggers associated with image items?

1042


how can we optimize or increase the speed of a mysql select query? : Sql dba

949


Which one is better subquery or joins?

1065


Can unique keys be null?

915


Are views faster than queries?

994