daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Dec 8th, 2011 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select cr.ShortName, SUM(DocDetail.PriceRelis*DocDetail.Quantity)
  2. FROM DocHeaders INNER JOIN DocDetail ON DocHeaders.ID=DocDetail.id
  3. left join Contragents on Contragents.id=DocHeaders.Client
  4. left join Contragents сr on Contragents.MatPath like cr.MatPath+'.%'
  5.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top