how to find the second highest salary from emp table?

Answer Posted / bharat puri

select top 2 (salary) from emp
order by salary desc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you create an empty table from an existing table? : Sql dba

663


How to change the order of columns in Oracle SQL Plus ?

616


Differentiate between pl/sql and sql?

619


explain advantages of myisam over innodb? : Sql dba

608


Explain the uses of control file.

617






Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

562


What is application trigger?

545


The in operator may be used if you know the exact value you want to return for at least one of the columns.

558


What is a file delimiter?

558


What is oracle and pl sql?

663


Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?

604


What is t sql in sql server?

572


how to get @@error and @@rowcount at the same time? : Sql dba

531


what are the advantages and disadvantages of cascading style sheets? : Sql dba

555


explain mysql aggregate functions. : Sql dba

549