Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: count(*) for sample blcok

Re: count(*) for sample blcok

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 9 Dec 2006 15:42:18 -0800
Message-ID: <1165707738.220014.110450@f1g2000cwa.googlegroups.com>

On Dec 8, 11:44 am, DA Morgan <damor..._at_psoug.org> wrote:
> prateek wrote:
> > Hi,
> > I am curious to know why this query:
>
> > "select count(*) from far_employee sample block (1);"
>
> > returns zero at times and some other times returns a non zero number.
> > Table: far_employee is populated with more than 400K records.
>
> > Thanks,
> > PrateekTry:
>
> SELECT COUNT(*)
> FROM far_employee
> SAMPLE(1);
>
> It should work better.
> --
> Daniel A. Morgan
> University of Washington
> damor..._at_x.washington.edu
> (replace x with u to respond)
> Puget Sound Oracle Users Groupwww.psoug.org

Prateek, Please do not post the same question on both comp.databases.oracle.server and .misc. One forum is all you need to post to.

HTH -- Mark D Powell -- Received on Sat Dec 09 2006 - 17:42:18 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US