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

Answers were Sorted based on User's Feedback



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

Answer / rajeshraajan

SQL Server ( For 2nd max Salary )
---------------------------------

select Min(salary) from
( Select Top 2 salary from
( Select distint salary from Employee Order by
salary Desc ))


with this query we can find n th salary.

if am wrong plz correct me.
thx

Is This Answer Correct ?    53 Yes 95 No

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

Answer / lia

select employee_name
from employee
order by salary desc
where ROWNUM=2

Is This Answer Correct ?    31 Yes 83 No

Post New Answer

More Automation Testing AllOther Interview Questions

How do you connect Data base from selenium

1 Answers  


What are the different types of testing framework techniques?

0 Answers  


What kind of tests should not be automated?

0 Answers  


pls suggest me a good institute for loadrunner in hyderabad also what about a practice project?

43 Answers  


worksoft automation tool how do you create process ?

1 Answers  






i have file name called add.sh how to run and where to run this shell script file???

0 Answers  


What are principles of good testing scripts for automation?

0 Answers  


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

0 Answers   FIC,


I want online Training for selenium web driver. please can you send any details?

3 Answers  


Hi Can anyone tell me the site wherefrom I can Install latest version of QTP on my PC?

2 Answers  


i am looking for HP QTP automated testing software, do you offers reselling this software or should i directly purchase with HP

1 Answers   HP,


How do you identify the test cases which are suitable for automation?

0 Answers  


Categories