これは 2 つのレコードを返しますが、2 行目の合計は null を示しています。何が問題なのですか?
SELECT nvl(X_CDTR_AGT_ID_2AND,' ')
,COUNT(CASE P_PMNT_SRC WHEN 'FDR_ATM' THEN 1 END) as atmCount
,( SELECT sum(X_STTLM_AMT) AS IVRSUM
FROM v_minf_report b
WHERE b.X_CDTR_AGT_ID_2AND = ass.X_CDTR_AGT_ID_2AND
GROUP BY X_CDTR_AGT_ID_2AND ) as nyun
,COUNT(CASE P_PMNT_SRC WHEN 'FDR_INB' THEN 1 END) as inbCount
,COUNT(CASE P_PMNT_SRC WHEN 'FDR_IVR' THEN 1 END) as ivrCount
,COUNT(CASE P_PMNT_SRC WHEN 'FDR_BV' THEN 1 END) as bvcount
,COUNT(CASE P_PMNT_SRC WHEN 'FDR_MANUAL' THEN 1 END) as manualcount
FROM v_minf_report ass
WHERE P_TX_CTGY = 'CTO'
GROUP BY X_CDTR_AGT_ID_2AND