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

Answer Posted / vittal

select max(sal)from emp e1 where 2<=(select count(*) from
emp e2 where e1.sal <= e2.sal);

Is This Answer Correct ?    66 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Kindly let me know how to setup JMeter for functionality testing of a Web application.. The apache help doc is good but i m little confused with it... :(

1769


What are the frameworks available in rc?

572


What COM Interfaces u r using in QTp While Connecting QC or TD? Or in QTP?Any body plz urgent...

1540


What is the difference between continue and next sentence?

518


Can you explain me what is object repository?

549






What is a xpath?

564


Kindly let me know how to setup JMeter for functionality testing of a Web application.. The apache help doc is good but i m little confused with it... :(

1740


Can the activities of test case design be automated?

1431


What is open source tool and give example?

554


What is tsl?

562


what types of documents we need to write the nonfuntional test scripts?

1510


What is an automated test script?

657


Can you explain data-driven testing?

561


What are the advantages of automation testing?

539


Tell us how can you create html test report from your test script?

525