我收到以下查询:
SELECT
ep_101.cd_hfdmapnr AS Dossiernummer,
SUM(ep_102.id_fhmbdlv) AS Kosten
FROM ep_101
INNER JOIN et_101 ON ep_101.cd_hfdmapnr = et_101.cd_hfdmapnr
INNER JOIN ep_102 ON ep_101.cd_hfdmapnr = ep_102.cd_hfdmapnr
WHERE ep_101.cd_mapkverw = 0
AND ep_102.cd_bkcode = '000010'
AND et_101.opdrachtgever1 = '05354605'
GROUP BY ep_101.cd_hfdmapnr
UNION
SELECT
ep_101.cd_hfdmapnr AS Dossiernummer,
SUM(ep_102.id_fhmbdlv) AS GriffieKosten
FROM ep_101
INNER JOIN et_101 ON ep_101.cd_hfdmapnr = et_101.cd_hfdmapnr
INNER JOIN ep_102 ON ep_101.cd_hfdmapnr = ep_102.cd_hfdmapnr
WHERE ep_101.cd_mapkverw = 0
AND ep_102.cd_bkcode = '000020'
AND et_101.opdrachtgever1 = '05354605'
GROUP BY ep_101.cd_hfdmapnr
虽然结果只返回 Dossiernummer & Kosten 我怎样才能重新创建它以便也显示“Griffiekosten”?因为我没有想法......