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

Home -> Community -> Usenet -> c.d.o.server -> Re: Queries give impossible results

Re: Queries give impossible results

From: michael ngong <mngong_at_yahoo.com>
Date: 14 Nov 2002 07:30:52 -0800
Message-ID: <ecf365d5.0211140730.31434827@posting.google.com>


SQL> select count(*) from ci_customer;

  COUNT(*)


    138295

SQL> SELECT count(*) FROM ci_customer WHERE customer_state = 'ACTIVE';

  COUNT(*)


    135324

select count(*), filter by customer_state='ACTIVE' and customer_state not in ('ACTIVE')
If the sum of the last two does not sum up to count(*) then you either have null columns in your table or may then have a real reason to worry

Michael Tubuo Ngong Received on Thu Nov 14 2002 - 09:30:52 CST

Original text of this message

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