select kw0408id, sjbh, ksrs, kch, to_char(wm_concat(kcmc)) as kcmc, ksxs, kssc, ksfs, kcxz, xsyx, nj from (select a.kw0408id, a.sjbh, a.ksrs, kch, kcmc, to_char(wm_concat(distinct KSXS.DMMC)) as ksxs, to_char(wm_concat(distinct kssjcd.dmmc)) as kssc,…