Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is oracle and what are its different editions?

1118


How to pass parameters to procedures?

1088


Explain about functional dependency and its relation with table design?

1060


What is save point in oracle database?

1364


Explain the use of show option in imp command.

1147


How to rename an existing table?

1214


Why oracle is used?

1106


How many types of segments in Oracle?

1114


In oracle there is column command, how will you explain that?

1136


What to do if dba lost the system password?

1244


How to resolve name conflicts between variables and columns?

1077


How index is implemented in oracle database?

1043


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

1905


How to count duplicated values in a column in oracle?

1104


what is the difference between restoring and recovering?

1053