Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Limitting result without ROWNUM
Vladimir M. Zakharychev schrieb:
>> I have to limit the number of results without using ROWNUM or something
>> like that. One hint was to use "JOIN".
>>
>> I have to select the 10 biggest persons from a table "persons"
>>
>> id, firstname, lastname, size, age
>>
>>
>> WITHOUT using ROWNUM or "limitter" like this.
>>
>> Do you have any idea?
>>
>> Thanks a lot.
>
> Strange requirement - care to explain why?
It forbidden to use such "limiters", we ( students) should do this via a
kind of "JOIN". We MUST do so.
I have tried it for hours...
> I'd suggest using RANK() or > DENSE_RANK() analytic functions for this, but you might consider them > "limiters", too, so...
That's right ;-)
> How about just fetching the first 10 rows of the > result set and ignoring the rest?
Cannot act like this.
Thanks for your quick reply. Received on Fri Jan 19 2007 - 15:07:31 CST