dbTalk Databases Forums  

Count Function - Oracle 9i

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Count Function - Oracle 9i in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
raghu
 
Posts: n/a

Default Count Function - Oracle 9i - 08-04-2006 , 06:59 PM






When a column is defined as not null for a table, count(*) and
count(column) should return the same result. Correct?
However I am getting different results. What could be the reason?

Thanks.


Reply With Quote
  #2  
Old   
Mark C. Stock
 
Posts: n/a

Default Re: Count Function - Oracle 9i - 08-04-2006 , 08:44 PM







"raghu" <raghu_vnin (AT) yahoo (DOT) com> wrote

: When a column is defined as not null for a table, count(*) and
: count(column) should return the same result. Correct?
: However I am getting different results. What could be the reason?
:
: Thanks.
:

the NOT NULL constraint could have been enabled with the NOVALIDATE option
(don't recall what version that was introduced) or be disabled -- but both
of these possibilities would be very unusual for a not null constraint

try select * where column is not null and see what you get

++ mcs



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.