how to find the second highest salary from emp table?

Answer Posted / sumit sharma

select sal from (select distinct(sal) from emp where sal is
NOT NULL order by sal dsc) where rownum = 2

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between hql and native sql?

591


How can I tell if sql is running?

600


how to create a test table in your mysql server? : Sql dba

507


Mention what is the plv (pl/vision) package offers?

647


How do you add a column to a table?

610






What are triggers and its types?

565


Why do we use joins?

577


what is data integrity? : Sql dba

602


What is varray in pl sql?

574


What are stored procedures in mysql?

576


what is msql? : Sql dba

572


What is index example?

566


What does varchar include?

527


Mention what does plv msg allows you to do?

678


What does desc stand for?

602