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

Answer Posted / jawad humayun

SELECT MIN(salary)
FROM employ
WHERE salary IN (SELECT salary
FROM employ
ORDER BY salary DESC
LIMIT 2)

This querry will give the 2nd highest salary
to have nth highest salary replace 'LIMIT 2' by 'LIMIT n'

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between Batch test runner and framework ?

1620


Simplify the term defect severity.

510


What is functional and regression testing?

625


Do you know how to check if a button is enabled on the page?

540


Give some examples for defect management tools?

571






Tell me how could ajax controls be handled in webdriver?

536


What is the major difference between Functional test, Acceptance test, Usability test and performance test. With special reference to automotive domain

1833


Tell me what is the purpose of getoptions() method?

534


Explain what sikuli is?

608


What is vendor tool and give examples?

615


What is in-house tool?

556


What is testng and why is it better than junit?

571


How do i startup with Remedy testing tool. Couldnot able to find any links for startup. Please help me to startup with this remedy tool.

1224


How automation process is carried out?

566


What all different approaches can be used for designing an automation solution?

498