a guest Dec 8th, 2011 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- select cr.ShortName, SUM(DocDetail.PriceRelis*DocDetail.Quantity)
- FROM DocHeaders INNER JOIN DocDetail ON DocHeaders.ID=DocDetail.id
- left join Contragents on Contragents.id=DocHeaders.Client
- left join Contragents сr on Contragents.MatPath like cr.MatPath+'.%'
RAW Paste Data