create view vi_insuranceinfo_third_transfer as SELECT APZL.LC_RENT_PLAN.CONTRACT_ID AS CONTRACT_ID, max(APZL.LC_RENT_PLAN.PLAN_DATE) AS ENDDATE
FROM APZL.LC_RENT_PLAN
GROUP BY APZL.LC_RENT_PLAN.CONTRACT_ID;

-- comment on column vi_insuranceinfo_third_transfer.contract_id not supported: 合同编号

-- comment on column vi_insuranceinfo_third_transfer.enddate not supported: 计划日期

