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

What is clause in sql?

1178


What is the difference between a subquery and a join?

1173


Where the sql database files are stored?

1081


What is the difference between a query and a report?

1059


Is full outer join same as cross join?

1018


How can we implement rollback or commit statement in a trigger?

1085


what does the t-sql command ident_current does? : Transact sql

1048


What is sql key?

1045


How many types of cursors supported in pl/sql?

1260


what are the differences between char and varchar? : Sql dba

1121


What is before and after trigger?

1010


Is postgresql a server?

1114


what is heap table? : Sql dba

1141


Is sql developer case sensitive?

1048


How can you select unique records from a table?

1149