find out the second highest salary?

Answer Posted / sikindar

SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the analyze command in oracle?

585


HI ALL, CAN ANYONE TELL ME THE DIFFERENCES BETWEEN SQL CLUSTURS,MSQL CLUSTERS,ORACLE CLUSTERS.......THANKS IN ADVANCE

1784


How to select all columns of all rows from a table in oracle?

588


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

650


What are the advantages of oracle 12c?

554






Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.

1865


What is sequence?

622


Explain the use of ignore option in imp command.

573


Why do I get unexpected characters from 8-bit character sets in weblogic jdriver for oracle?

608


 What are the oracle DML commands possible through an update strategy?

580


What is an oracle data file?

613


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1730


Is a rollback possible to any savepoint?

556


What is tns service name?

619


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.

1530