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

Answer Posted / girase hitendrasing a.

select * from Employees where Salary in (select top 1
salary from (select distinct top 2 salary from employees
order by salary desc) order by salary asc)

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of scenarios can't be automated?

574


what is the difference between keyword driven frame work and data driven frame work.

1885


What you know about table-driven testing?

560


Tell us how can we handle web-based pop-up?

571


Can any one give me the script for drag and drop or setselection functions ?like in a not pad i want to select 5 lines

1440






Explain what is the hybrid framework?

578


Can we prioritize tests in Junit. What is the sequence of execution in Junit?

1431


When will you not automate testing?

608


VSTET (Visual Studio Team Edition for Testers) which is in TFS (Team Foundation Server) - In what way is VSTET better than QTP?

3209


When do you prefer manual testing over automation testing?

565


Have you completed the cps exam? Which one?

547


what is the dictionary objects in QTP? and what is method of vb script using virtual object wizard........

1547


What are the 5 common software development problems solutions?

558


Can we do automation testing without a framework? If yes, then why do we need a framework?

706


How many test cases have you automated per day?

557