可能是:字段
T_idleness_register表中C_attestation 中有NULL 值。你用这个试试:
select count(c.C_attestation ) from ac01 a,jc10 b,T_idleness_register c where b.aae116='1' and c.c_no=a.aac001 and c.c_no=b.aac001 and c.C_attestation='200611'---------------------------------------------
请到我 csdn 的 blog 做客
http://blog.csdn.net/whqcfp/

解决方案 »

  1.   

    whqcfp(one_dollar):没有,我的C_attestation没有是NULL的
      

  2.   

    刚才看错了,你的Where 中where b.aae116='1' and c.c_no=a.aac001 and c.c_no=b.aac001 and c.C_attestation='200611'A表没有关联,产生了递卡尔级---------------------------------------------
    请到我 csdn 的 blog 做客
    http://blog.csdn.net/whqcfp/
      

  3.   

    A表没有关联?
    c.c_no=a.aac001 这个不是么?
      

  4.   

    刚才是我看错了。在加上 c.C_attestation='200611' 后,记录数增多,可以肯定的说,这是Where条件
    关联的不正确所致。我想主要有以下几方面:
    第一:关联的条件是不是正确
    第二:Where 中的字段是不是空值,或异常的数据,使的关联出现异常http://blog.csdn.net/whqcfp/archive/2006/11/10/1378065.aspx 是我碰到的。
    ---------------------------------------------
    请到我 csdn 的 blog 做客
    http://blog.csdn.net/whqcfp/
      

  5.   

    可能是因为
    aac001:c_no是1:N的关系