Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Random selection of data throug SQL querry
Hi Praful!
Thanks for your feed. This works great.
Best regards,
Shakeel Qureshi
squreshi_at_barpoint.com
--- Praful Thakkar <thakkar_praful_at_yahoo.com> wrote:
> Try this ...
>
> select field_list from tablename sample(1);
>
> This will give you a random sample of about 1% of
> total recs in
> your table.
> (It's Oracle 8.1.6 - I'm not sure if it would work
> for earlier
> versions.)
>
> HTH.
>
> - Praful
>
> --- Shakeel Qureshi <msklq_at_yahoo.com> wrote:
> > Hi all!
> >
> > I immediate need your help.
> >
> > How could I random select few lines from a large
> > table through an sql select statement.
> >
> > Appreciate quick response.
> >
> > Shakeel Qureshi
> > squreshi_at_barpoint.com
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Shopping - Thousands of Stores. Millions of
> Products.
> > http://shopping.yahoo.com/
> > --
> > Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> > --
> > Author: Shakeel Qureshi
> > INET: msklq_at_yahoo.com
> >
> > Fat City Network Services -- (858) 538-5051
> FAX: (858)
> > 538-5051
> > San Diego, California -- Public Internet
> access /
> > Mailing Lists
> >
>
![]() |
![]() |