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

Answer Posted / rajkumar mandala

select sal from
(select rank() OVER (order by sal desc) sno ,sal from emp)
y
where sno= n

here
y : is the alias name for (select rank() OVER (order by sal
desc) sno ,sal from emp)
n : is the number ie if u want second highest sal then 'n'
value will be 2. for third highest n= 3...

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain add in manager and virtual object wizard in winrunner

1643


Tell me how a text written in a text field could be cleared?

507


Explain what is the difference between findelement () and findelements ()?

536


Explain some disadvantages to manual software testing?

583


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

3195






Give some examples for test management tools?

571


What is javascriptexecutor and in which cases javascriptexecutor will help in selenium automation?

562


HOW DO YOU PERFORM SECURITY TESTING TO VERIFY FIREWALLS,PASWORD ENCRYPTOPNS ETC?

1818


Program/pseudo code on FIFO? Input a string and make sure that output is in FIFO manner. Eg, Enter 'John Dave' as input and output should be 'John Dave' not 'Dave John'. (inbuilt functions like push, pop were given)

4924


What are the different types of testing framework techniques?

527


Discuss the economics of automation and the role of metrics in testing.

2027


WHAT'S THE TESTER'S ROLE DURING MIGRATION OF CODE FROM TESTING TO PRODUCTION ENVIRONMENT

1715


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

1816


What is the process of Automation Testing?

565


Tell us what automation tools could be used for post-release validation with continuous integration?

499