how to find the second highest salary from emp table?

Answer Posted / abhishek kundu

SELECT MAX(SALARY) FROM EMP
WHERE SALARY<(SELECT MAX(SALARY) FROM EXP);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do we use triggers?

583


Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

804


Why do we go for stored procedures?

508


what is 'trigger' in sql? : Sql dba

557


Do stored procedures prevent sql injection?

544






explain access control lists. : Sql dba

555


What is pl sql in oracle?

579


Why commit is not used in triggers?

576


what is the difference between truncate and drop statements? : Sql dba

552


What is a recursive join sql?

594


What are all ddl commands?

545


Is sql developer case sensitive?

514


Can procedure in package be overloaded?

606


What are sql ddl commands?

545


How does pl sql work?

520