ORA-24347: Warning of a NULL column in an aggregate function with PHP5.3.3

天大地大妈咪最大 提交于 2019-12-13 00:19:38

问题


Problem Statement: I am getting the below error with php5.3.3. ORA-24347: Warning of a NULL column in an aggregate function. Same coding was working fine with php4. There is no issue with my oracle view but when I started using the same with php5.3.3. It started giving the warning.

Query:

  CREATE OR REPLACE FORCE VIEW "CUSTOMER_OA" ("CUST_ID", "CUSTOMER", "OPEN_CT", "EXPIRE_SOON_CT", "INVALID_EMAIL_CT") AS 
    select c.cust_id, initcap(max(c.name)) AS customer,  null AS open_ct, null AS expire_soon_ct, count(unique invalid.contact_id) AS invalid_email_ct
    from customer c
    inner join apptype at
    using (apptype_id)
    left outer join (select cust_id, contact_id from cust1 where valid_email = 'N'
    union all
    select cust_id, contact_id from cust2 where valid_email = 'N'
    union all
    select cust_id, contact_id from cust3 where valid_email = 'N') invalid
    on (c.cust_id = invalid.cust_id)
    where at.app_type = '1' 
    group by c.cust_id
    order by customer;

来源:https://stackoverflow.com/questions/40926515/ora-24347-warning-of-a-null-column-in-an-aggregate-function-with-php5-3-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!