码迷,mamicode.com
首页 > 其他好文 > 详细

111

时间:2019-05-13 16:22:25      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:select   time   sele   lamt   lan   cti   org   contact   nta   

select a.billno,a.billcode,a.billno,a.dates,a.ontime,c.OrgName,d.CardCode,d.Beactive,d.fakrq,d.sxrq,b.Balance as handSelAmt,d.Balance
from RetBillMt a(nolock)
join TrCouponDt b(nolock) on a.entid=b.entid and a.billno=b.billno
join OrgDoc c(nolock) on c.EntId = a.EntId and c.OrgId = a.OrgId
join CardDoc d(nolock) on d.EntId = b.EntId and d.CardId = b.CardId
join ContactDoc e(nolock) on e.EntId = a.EntId and e.ContactId = a.ContactId
where a.billno = :billno and a.entid = :_entid
order by a.billcode

111

标签:select   time   sele   lamt   lan   cti   org   contact   nta   

原文地址:https://www.cnblogs.com/CandiceW/p/10856898.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!