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
Tell me what are pros and cons of automating tests at ui layer?
What are the most popular tools for automation testing?
Name some of the commonly used automation testing tools that are used for non-functional automation.
Could any one share scripts... where we can Parameterize radio buttons and Check boxes in Rational Robot.
explain add in manager and virtual object wizard in winrunner
Is automation testing a complete replacement for manual software testing?
Explain me what kinds of annotations are used in testng?
Where you have applied oops in automation framework?
Tell us what methods of robot class do you know?
Can any one give information on "Content Disposition" in TEST COMPLETE automation tool? mail me to pdamarakonda@smart-bridge.co.in call me to 09849423932
What is junit? And what is junit annotation?
When is automation testing useful?
Why automation testing?
Can you explain data-driven testing?
Tell me what databases can test director reside on?