Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: query for top 10 sql? the standard
It dependes, if you want the top 10, or the first 10 sql.
In the first situation you have to do a specific query (maybe using analytic
functions) , to get them.
This is a query and will be almost always different to any other sql,
because it depends in you
table and database structure.
Now about the first 10 sql, you have a hint to ask the database get only the
first 10 and send to
you as soon as possible /*+ FIRST_ROWS(10) */
Out of that hint, I think you will not find a standard, because every query is very specific.
>
>
>
>
> Ryan,
>
> "Top ten" what? I think that's why there are different queries out there.
> It all depends on what you care about and I doubt that any specific query
> is right or wrong - just a different view or definition of "top ten".
>
>
>
>
> "Ryan"
> <ryan.gaffuri_at_cox. To:
<oracle-l_at_freelists.org>
> net> cc:
> Sent by: Subject: query for top 10
sql?
> oracle-l-bounce_at_fr
> eelists.org
>
>
> 11/03/2004 11:04
> Please respond to
> oracle-l
>
>
>
>
>
>
> is there a standard query for this? Seems like people have different
> standards.
>
>
>
>
>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>> Privileged/Confidential information may be contained in this message.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Mar 11 2004 - 07:48:47 CST
![]() |
![]() |