Write a query to find second highest salary of an employee.

Answer Posted / shahid parvez

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

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know by pl/sql cursors?

570


What is compilation error in pl sql?

504


Can a key be both primary and foreign?

510


Show the cursor attributes of pl/sql.

612


how would you get the current date in mysql? : Sql dba

551






Does mysql_real_escape_string prevent sql injection?

539


Explain the methods used to protect source code of pl/sql.

546


What are inner outer left and right joins in sql?

519


How to add new employee details in an employee_details table with the following details

649


What is crud diagram?

513


How to use sql*plus built-in timers?

578


Write a sql query to find the names of employees that begin with ‘a’?

578


What is sql table?

522


what are sequences

1097


what is the functionality of the function htmlentities? : Sql dba

523