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

SELECT salary FROM EMPtable
WHERE salary NOT IN ( SELECT MAX(salary)
FROM EMPtable)
ORDER BY salary DESC
FETCH FIRST ROW ONLY
---
We have verified and its working
fine.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does postgresql run on the cloud?

1143


What is the location of pre_defined_functions.

1165


Explain aggregate functions are available there in sql?

1003


What is primary key and foreign key?

958


What is 19 null in sql?

956


What are the different type of joins in sql?

952


what is the difference between a having clause and a where clause? : Sql dba

1081


What are records give examples?

1001


What is the use of & in pl sql?

1044


Does inner join return duplicate rows?

974


what is the difference between undefined value and null value? : Sql dba

1098


Can we alter stored procedure?

986


How do I count duplicates in sql?

1103


How many commands are in sql?

1066


What are procedures used for?

983