Hello,
I am geting error in the case when select statement.The error message is " 3610: internal error: please do not resubmit the last request"
what should I do for that
Please help me.
This is the query.
SELECT
a.DOMICILE_CHANNEL_ID AS IDD
, COALESCE(SUM(
CASE
WHEN A.ACCOUNT_NBR IN (
SELECT D_S.ACCOUNT_NBR
FROM
DD_TEDW.T0305_ACCOUNT_SUMMARY_DERIVE D_S
WHERE D_S.ACCOUNT_NBR IN (973400,888700,971120,971300,973800,970900,970912,970910, 971100,970301,970302,970303,970300,973000,900071,900072,971000)
AND D_S.ACCOUNT_SUMMARY_DATE = '2002-10-31' )
THEN ENDING_LEDGER_BALANCE_AMT
END ),0) AS TODAY_ADV
FROM
dd_tedw.t0300_account a
Inner Join dd_tedw.t0303_account_status_history c
On a.account_nbr = c.account_nbr
Inner Join dd_tedw.t0305_account_summary_derive d
On a.account_nbr = d.account_nbr
Inner Join DD_TEDW.B0800_CHANNEL_MAP E
On E.mapped_id = a.domicile_channel_id
WHERE c.acct_status_type_code = 1
GROUP BY 1