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

Answer Posted / rajkumar mandala

select sal from
(select sal,(row_number() over (order by sal)) N from emp ) y where N= {value}

Replace {value} value with required highest value.
ie, 2 for 2nd highest

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How did you use automating testing tools in your job?

1530


What is the scripting standard while performing automation testing?

638


What are the types of the framework used in software automation testing?

508


Do you know what is the purpose of deselectall() method?

575


Tell me the fundamental difference between xpath and css selector?

551






How is Jmeter tool very useful in projects when it does not have features like online monitoring,WAN emulation,caching like other performance tools.

1940


What is test automation?

1654


What are the pre-requisites to start automation testing?

469


How would you test your own element locator?

525


Any kind of test which you think should not be automated?

521


Is ui level testing possible?

546


I am new to Test Complete ,can any one suggest me the steps to create/Record and replay a test in Test complete 6....

1916


what is critical test case ? please give an example .

1371


Tell us how to select a value in a dropdown?

519


what is aom and how to add object repository? i am very new to QTP please help me

1439