create view vi_lcrp_first_transfer as SELECT LRI.CARDDEDUCT_ID AS CARDDEDUCT_ID, LRI.CARDDEDUCT_STATUS AS CARDDEDUCT_STATUS
FROM APZL.LC_RENT_INCOME LRI
WHERE (LRI.ROLL_BACK = '0')
UNION
SELECT LRIT.CARDDEDUCT_ID AS CARDDEDUCT_ID, LRIT.CARDDEDUCT_STATUS AS CARDDEDUCT_STATUS
FROM APZL.LC_RENT_INCOME_TEMP LRIT
WHERE ((LRIT.ROLL_BACK = '0') AND (LRIT.IS_FLOWING = '0'));

