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

Tell us how could you explain the main difference between webdriver and rc?

559


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

2032


how to map requirements& test cases in quality center ???

2056


Tell us how do you get the width of the textbox?

565


Please explain how to perform load-testing?

575






How do you decide which tool you have to use?

551


Kindly let me know how to setup JMeter for functionality testing of a Web application.. The apache help doc is good but i m little confused with it... :(

1771


Explain some disadvantages to manual software testing?

594


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.

1220


Where to maintain information like login, password and url?

528


Elaborate the scripting standard while executing testing

511


What is test tool?

572


Tell us how can you find if an element is displayed on the screen?

516


What issues come up in test automation, and how do you manage them?

1986


Explain what sikuli is?

596