Databases Reference
In-Depth Information
(SELECT c.riskID,SUM (rl.line_amount)Nettoretoure
FROM [dbo].[iw_customer]c, [dbo].[iw_return_line]rl
where c.customerNo = rl.customerNo
and rl.[type] = 2
group by c.riskID)b,
(SELECT distinct c.riskID, rh.[shippingAgent]
FROM [dbo].[iw_return_header]rh, [dbo].[iw_customer]c
where rh.customerNo = c.customerNo
and rh.shippingAgent in ('DHL','HERMES')
and exists
(select va.riskID from
(Select v.riskID, count (*) Anzahl
from
(SELECT distinct c.riskID, rh.[shippingAgent]
FROM [dbo].[iw_return_header]rh, [dbo].[iw_customer]c
where rh.customerNo = c.customerNo)v
where v.shippingAgent in ('DHL','HERMES')
group by v.riskID)va
where c.riskID = va.riskID
and va.Anzahl = 1))c
where a.riskID = b.riskID
and a.riskID = c.riskID)vsq
group by vsq.shippingAgent
 Bild 26.3■
Das Ergebnis - sortiert nach Versender
Die Unterschiede in der Quote sind marginal und nicht signiikant, wie in Bild 26.3 zu sehen
ist. Nicht das Ergebnis ist hier das Ziel gewesen, sondern der Weg dorthin.
 
Search WWH ::




Custom Search