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

How many types of cursors supported in pl/sql?

1092


What is parallel hint?

1217


What operating systems are supported by oracle sql developer?

902


What is a table partition?

1036


What is difference between stored function and application function?

1100


what is a composite primary key ? : Sql dba

996


Is mariadb a nosql database?

1004


Enlist some predefined exceptions?

993


Explain about various levels of constraint.

881


Lookups are a key component in sql server integration services (ssis). Explain its purpose?

953


How to Declare Fixed Length String Value In PL SQL

1101


Is json a nosql?

914


How can triggers be used for the table auditing?

1008


How to take user input in pl sql?

1105


How can you load microsoft excel data into oracle? : aql loader

1127