@ Tous
Svp besoin d'une petite aide. Merci d'avance. Je cherche a joindre ces deux queries pour avoir un seul. Je voudrais avoir ces deux selections en une seule .
slection1
select v.hdnr,v.filial,rtrim(p.strasse ||','|| h.plz ||','|| h.ort) as Anschrifft ,count (v.vtnr) as anzahl
from givitdata.partner p
left join givitdata.vertrag v on v.filial = p.filial and v.hdnr = p.hdnr
inner join givitdata.htplz h on p.plzid = h.plzid
where v.hdnr = 320947 and v.datver1 between '2014-1-01' and '2014-08-01'
group by v.filial,v.hdnr,p.strasse,h.plz,h.ort
order by filial asc
selection 2
select hdnr, filial from givitdata.partner
where hdnr = 320947
Svp besoin d'une petite aide. Merci d'avance. Je cherche a joindre ces deux queries pour avoir un seul. Je voudrais avoir ces deux selections en une seule .
slection1
select v.hdnr,v.filial,rtrim(p.strasse ||','|| h.plz ||','|| h.ort) as Anschrifft ,count (v.vtnr) as anzahl
from givitdata.partner p
left join givitdata.vertrag v on v.filial = p.filial and v.hdnr = p.hdnr
inner join givitdata.htplz h on p.plzid = h.plzid
where v.hdnr = 320947 and v.datver1 between '2014-1-01' and '2014-08-01'
group by v.filial,v.hdnr,p.strasse,h.plz,h.ort
order by filial asc
selection 2
select hdnr, filial from givitdata.partner
where hdnr = 320947

