用SQL如何过滤掉P.ISOBUTANE、P.N_BUTANE字段为NULL的值
select
SUM( P.METNE)/count(P.PROPANE) C1G,
sum(P.PROPANE)/count(P.PROPANE) + sum(P.ISOBUTANE)/count(P.PROPANE) + sum(P.N_BUTANE)/count(P.PROPANE) + sum(P.ISOPENTANE)/count(P.PROPANE) + sum(P.N_PENTANE)/count(P.PROPANE) + sum(P.N_HEXANE)/count(P.PROPANE) AS "C3+G" ,
count(P.PROPANE)
from PC_BSQ_ASSAY_TEST_REPOR_DATA P
WHERE
p.org_id = '${org_id}'
and P.ISOBUTANE is not null
and P.N_BUTANE is not null
and to_char(p.PROD_DATE, 'yyyy-mm-dd') ='${format(reportDate, 'yyyy-MM-dd') }'
and to_char(p.PROD_DATE, 'yyyy-mm-dd') <='${format(reportDate, 'yyyy-MM-dd') }'
group by to_char(p.PROD_DATE, 'yyyy-mm-dd')