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 / obed

You donot use '>4' for comparing
you must use '<=4'
if u used >4 its will not return any row because there in
no row is select >

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the restrictions on external table columns?

545


What is a relational database management system?

665


Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?

1874


How would you begin to troubleshoot an ORA-3113 error?

1589


List out the difference between commit, rollback, and savepoint?

616






What is where clause in oracle?

526


How to define an explicit cursor in oracle?

595


What are the uses of synonyms?

598


How to get a list of all background sessions in the database?

531


Can we store pictures in the database and if so, how it can be done?

583


What is the sid in oracle?

530


does the query needs a hint to access a materialized view?

1458


Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

549


What is rowid and rownum in oracle?

536


Explain alias?

703