What is the query to find nth highest salary?
What is the use of cursors?

Answer Posted / sbvp

select * from table name where sal in ( select * from
(select distinct sal from tablename order by sal desc)
where rownum<=&n);


if there is any another query plz tell me r mail me

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the components of workflow manager?

590


Explain joiner transformation in informatica

668


What is a rank transform?

676


What are pre and post-session shell commands?

743


Under what conditions selecting sorted input in aggregator will still not boost session performance?

638






When do you use sql override in a lookup transformation?

589


Explain lookup transformation source types in informatica

702


What is rank transformation in informatica

693


What are the basic requirements to join two sources in a source qualifier transformation using default join?

615


update strategy transformation in informatica

642


Quickly characterize reusable change?

693


What is an active transformation?

648


How to extract sap data using informatica? What is abap? What are idocs?

560


Explain where to store informatica rejected data? How to extract the informatica rejected data?

582


What happens to map if we alter the datatypes between source and its corresponding source qualifier?

605