create view lc_rent_income_temp_transfer as SELECT APZL.LC_RENT_INCOME_TEMP.PAYMENT_NUMBER       AS PAYMENT_NUMBER,
       APZL.LC_RENT_INCOME_TEMP.PLAN_LIST            AS PLAN_LIST,
       sum(APZL.LC_RENT_INCOME_TEMP.RENT)            AS RENT,
       sum(APZL.LC_RENT_INCOME_TEMP.CORPUS)          AS CORPUS,
       sum(APZL.LC_RENT_INCOME_TEMP.INTEREST)        AS INTEREST,
       sum(APZL.LC_RENT_INCOME_TEMP.PENALTY)         AS PENALTY,
       sum(APZL.LC_RENT_INCOME_TEMP.CORPUS_ADJUST)   AS CORPUS_ADJUST,
       sum(APZL.LC_RENT_INCOME_TEMP.INTEREST_ADJUST) AS INTEREST_ADJUST,
       sum(APZL.LC_RENT_INCOME_TEMP.PENALTY_ADJUST)  AS PENALTY_ADJUST
FROM APZL.LC_RENT_INCOME_TEMP
WHERE ((APZL.LC_RENT_INCOME_TEMP.IS_FLOWING = 0) AND (APZL.LC_RENT_INCOME_TEMP.ROLL_BACK = '0'))
GROUP BY APZL.LC_RENT_INCOME_TEMP.PAYMENT_NUMBER, APZL.LC_RENT_INCOME_TEMP.PLAN_LIST;

-- comment on column lc_rent_income_temp_transfer.payment_number not supported: 投放编号

-- comment on column lc_rent_income_temp_transfer.plan_list not supported: 租金计划期次

