how to find the second highest salary from emp table?

Answer Posted / anuj maheshwari

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

Is This Answer Correct ?    34 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to load data files into tables with 'mysqlimport'? : Sql dba

518


Difference between table function and pipelined function?

583


Can we alter stored procedure?

539


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

593


What is meant by truncate in sql?

520






What will you get by the cursor attribute sql%found?

534


What are triggers and its uses?

593


Why is normalization important?

534


What is mutating error in pl sql?

542


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

618


What is a delimiter in sas?

542


Is like operator in sql case sensitive?

504


Define overloaded procedure?

620


How you improve the performance of sql*loader? : aql loader

573


Explain spool.

682