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

Answer Posted / shyam

select max(salary) as '2nd Highest Salary'
from Employee a
where 2<=(select count(*) from Currencies b where a.salary
<= b.salary);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why we cannot apply check points in compile modules?

1701


What are the main attributes of test automation?

1539


What is junit? And what is junit annotation?

531


What type of scenarios can be automated?

574


How software testing is handled?

513






How do you select which automation tool is best suited for you?

540


Tell us how do you get the width of the textbox?

574


Tell me what are the different types of navigation commands?

509


Hi vishal, Thanks for your reply... But i am not using Mozilla fire fox.. I am using IE 7.. Could you suggest me in this case.. I have tried with Rational tools which i am getting some installation problem and netvantage..tool....which i felt i can't write script for that.. please guide me in this..

1438


Does automation testing have any disadvantages?

561


what r the diffence between QTP 8.2 & QTP9.0?

1634


did anybody take online training from Mind Q systems hyderabad? please share your experience. thanksĀ 

1756


how to write ciertification in QTP?

1631


what we have done after display the result in openSTA result pane.in the sense that how we send the report,what we send in report,how to know that where is error.quickly tell me the answer...please

1718


Does every software project need testers?

551