how to find the second highest salary from emp table?

Answer Posted / rajat

select max(sal) from table_name sal<(select max(sal)
from table_name)

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 enter characters as hex numbers? : Sql dba

574


What are the different sql commands?

519


When are we going to use truncate and delete?

553


What are reports usually used for?

566


what is a database lock ? : Sql dba

594






What are the possible values for the boolean data field?

525


Explain 3 basic parts of a trigger.

841


What is sql dialect?

529


what are the properties and different types of sub-queries? : Sql dba

506


Why is the cursor important?

543


Is a foreign key always unique?

534


What is the order of sql select?

572


What is use of package in pl sql?

534


What is auto increment in sql?

587


How to use sql*plus built-in timers?

578