Eine Möglichkeit wäre:
PHP-Code:
With X as (select z1umonz1landsum(z1umse) as "LJ"
              
from auftdat.zums01p
              where z1land 
'001'
              
group by z1umonz1land)
     
as (select z1umonz1landsum(z1umse) as "VJ"
              
from auftdat.zums02p
              where z1land 
'001'
              
group by z1umonz1land)
select x.z1umonx.z1land"LJ""VJ"
from  x join y on x.z1umon y.z1umon and x.z1land y.z1land
order by x
.z1umon 
Das Ergebnis enthält allerdings nur die Sätze, in denen für z1umon und z1land in beiden Dateien ein Eintrag ist.
(Ich nehme an, dass für das ausgewählte Land für jeden Monat ein Umsatz vorhanden ist.)

Tippfehler nicht ausgeschlossen!

Birgitta