Friends
How can we use CASE statements in the following code
28:
IF (V_SOURCE_CODE = 'DEPOSIT') THEN
DELETE FROM INTERIM_AUTO_CASHFLOW AC
WHERE EXISTS
(SELECT *
FROM INTERIM_AUTO_CASHFLOW AC,
pl_mu_con_mat_conf AF,
Control_Matrix_Conf MC
WHERE AF.control_matrix_conf_id =
MC.control_matrix_conf_id
AND AC.MU_ID = AF.MU_ID(+)
AND AC.PRODUCT_LINE_ID = AF.PRODUCT_LINE_ID
AND MC.control_matrix_conf_code = 'AA')
ELSE
DELETE FROM INTERIM_AUTO_CASHFLOW AC
WHERE EXISTS
(SELECT *
FROM INTERIM_AUTO_CASHFLOW AC,
pl_mu_con_mat_conf AF,
Control_Matrix_Conf MC
WHERE AF.control_matrix_conf_id =
MC.control_matrix_conf_id
AND AC.MU_ID = AF.TBL_GLRS_MU_ID(+)
AND AC.PRODUCT_LINE_ID = AF.PRODUCT_LINE_ID
AND MC.control_matrix_conf_code IN ('AC', 'AN'));
END IF;
How can we use CASE statements in the following code
28:
IF (V_SOURCE_CODE = 'DEPOSIT') THEN
DELETE FROM INTERIM_AUTO_CASHFLOW AC
WHERE EXISTS
(SELECT *
FROM INTERIM_AUTO_CASHFLOW AC,
pl_mu_con_mat_conf AF,
Control_Matrix_Conf MC
WHERE AF.control_matrix_conf_id =
MC.control_matrix_conf_id
AND AC.MU_ID = AF.MU_ID(+)
AND AC.PRODUCT_LINE_ID = AF.PRODUCT_LINE_ID
AND MC.control_matrix_conf_code = 'AA')
ELSE
DELETE FROM INTERIM_AUTO_CASHFLOW AC
WHERE EXISTS
(SELECT *
FROM INTERIM_AUTO_CASHFLOW AC,
pl_mu_con_mat_conf AF,
Control_Matrix_Conf MC
WHERE AF.control_matrix_conf_id =
MC.control_matrix_conf_id
AND AC.MU_ID = AF.TBL_GLRS_MU_ID(+)
AND AC.PRODUCT_LINE_ID = AF.PRODUCT_LINE_ID
AND MC.control_matrix_conf_code IN ('AC', 'AN'));
END IF;