SELECT * FROM
(SELECT TITLE FROM MOVIE ORDER BY RANK DESC)
WHERE ROWNUM > 4;

when i run the above query .it produces output as NO ROWS
SELECTED.why ?plz any one help me

Answer Posted / rachita

This is because you cannot use > operator with Top-N
Analysis.The operator which is used is only < less-then and
<= less-then-equal-to .You can also use = operator but only
for retrieving the top most value .

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert character types to numeric types?

578


What is null value in oracle?

637


Oracle

1854


what is the need of indexing topic in oracle? where do we use in a Java project? any other option other than using this to get the same result where we use indexing ?

2046


Is it possible to split the print reviewer into more than one region ?

1837






What is a cursor in oracle?

651


What is Java Pool in Oracle?

604


A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.

4268


What is the usage of merge statement?

672


If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?

1660


What is a data dictionary and how can it be created?

615


What is the disadvantage of User defind function?

1833


Explain index?

747


How can you merge two tables in oracle?

567


What is the implicit cursor in oracle?

570