Ewald
02-02-06, 11:20
Hallo liebe Forumsmitglieder,
ich erhalte aus dem folgen SQL-Statement
select z1umon, z1land, sum(z1umse) as "LJ", 0 as "VJ"
from auftdat.zums01p
where z1land = '001'
group by z1umon, z1land
union
select z1umon, z1land, 0, sum(z1umse)
from auftdat.zums02p
where z1land = '001'
group by z1umon, z1land
order by z1umon, z1land
die folgende temporäre Ergebnistabelle
1 001 0.000,00 9.132,06
1 001 2.085,23 0.000,00
Nun möchte ich daraus eine Zeile machen.
1 001 2.085,23 9.132,06
Geht das in einem SQL-Statement??
Danke für die Antworten, Gruß
Ewald
ich erhalte aus dem folgen SQL-Statement
select z1umon, z1land, sum(z1umse) as "LJ", 0 as "VJ"
from auftdat.zums01p
where z1land = '001'
group by z1umon, z1land
union
select z1umon, z1land, 0, sum(z1umse)
from auftdat.zums02p
where z1land = '001'
group by z1umon, z1land
order by z1umon, z1land
die folgende temporäre Ergebnistabelle
1 001 0.000,00 9.132,06
1 001 2.085,23 0.000,00
Nun möchte ich daraus eine Zeile machen.
1 001 2.085,23 9.132,06
Geht das in einem SQL-Statement??
Danke für die Antworten, Gruß
Ewald