create view vi_rent_plan_sum as SELECT VRP.CONTRACT_ID AS CONTRACT_ID, sum(`nvl`(VRP.RENT_OVER, 0)) AS RENT_OVER, sum(`nvl`(VRP.PENALTY_OVER, 0)) AS PENALTY_OVER
FROM APZL.VI_RENT_PLAN VRP
GROUP BY VRP.CONTRACT_ID;

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

