Re: query for top 10 sql? the standard

  • From: "Juan Cachito Reyes Pacheco" <jreyes@xxxxxxxxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 11 Mar 2004 09:15:14 -0400

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.

----- Original Message ----- 
From: "Mark Richard" <mrichard@xxxxxxxxxxxxxxxxx>
To: <oracle-l@xxxxxxxxxxxxx>
Sent: Wednesday, March 10, 2004 9:27 PM
Subject: Re: query for top 10 sql?


>
>
>
>
> 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@cox.        To:
<oracle-l@xxxxxxxxxxxxx>
>                       net>                      cc:
>                       Sent by:                  Subject:  query for top 10
sql?
>                       oracle-l-bounce@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.
> If you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone.
> In such a case, you should destroy this message and kindly notify the
sender by reply e-mail or by telephone on (03) 9612-6999 or (61) 3
9612-6999.
> Please advise immediately if you or your employer does not consent to
Internet e-mail for messages of this kind.
> Opinions, conclusions and other information in this message that do not
relate to the official business of Transurban Infrastructure Developments
Limited and CityLink Melbourne Limited shall be understood as neither given
nor endorsed by them.
>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
> put 'unsubscribe' in the subject line.
> --
> Archives are at //www.freelists.org/archives/oracle-l/
> FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts:

  • » Re: query for top 10 sql? the standard