how to find the second highest salary from emp table?

Answer Posted / abir dutta

select min(empsal)
from (select * from sal order by empsal desc)
where rownum <=2

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between having and a where in sql?

570


What is nvl?

611


What are the types of triggers in sql?

496


i have some prob lem to tell me about my self in interview first round ...

1700


What is difference between sql and oracle?

560






What is the difference between the conventional and direct path loads? : aql loader

693


What is difference between sql function and stored procedure?

503


What is a data definition language?

554


How to convert comma separated string to array in pl/sql?

597


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

575


How do I write a cron which will run a sql query and mail the results to agroup?

524


What is field delimiter?

633


What is mdb stand for?

554


How many types of sql are there?

523


What are pl/sql cursors?

561