create view vi_test10 as (
SELECT T.CONTRACT_ID AS CONTRACT_ID, T.RENT_OVER AS RENT_OVER, T.CORPUS_OVER AS CORPUS_OVER
FROM (
    SELECT VI_LC_RENT_PLAN.CONTRACT_ID AS CONTRACT_ID, sum(VI_LC_RENT_PLAN.RENT_OVER) AS RENT_OVER, sum(VI_LC_RENT_PLAN.CORPUS_OVER) AS CORPUS_OVER
    FROM APZL.VI_LC_RENT_PLAN
    GROUP BY VI_LC_RENT_PLAN.CONTRACT_ID
) T);

-- comment on column vi_test10.contract_id not supported: 编号

