how to find the second highest salary from emp table?

Answer Posted / muhammed zaheer

select max(sal) from emp where sal < (select max(sal) from
emp)

Is This Answer Correct ?    86 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert delete data in view?

532


how can we know the number of days between two given dates using mysql? : Sql dba

536


what is datawarehouse? : Sql dba

558


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

567


What is the difference between delete, truncate and drop command?

538






What are the types of subqueries?

564


What is a delimiter in sas?

534


How do you define a foreign key?

520


What are the properties of a transaction?

548


What are expressions?

551


What is difference between primary and secondary key?

505


What is sql query optimization?

533


What is the difference between sql and mysql?

543


What is the command used to fetch the first 5 characters of a string?

695


Mention what is the use of function "module procedure" in pl/sql?

552