Foxtable(狐表)用户栏目专家坐堂 → [求助]统计过程中去重复


  共有2125人关注过本帖树形打印复制链接

主题:[求助]统计过程中去重复

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:111427 积分:567211 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/2/10 20:23:00 [显示全部帖子]

Dim sql As String = "Slect * from {运费明细} As a inner join (Slect 物流单号,店铺,sum(数量) As 销售数量 from {管家销售明细账} group by 物流单号,店铺) As b on  a.物流单号 = b.物流单号"


Dim sq2 As String = "Select * from {运费明细} As a inner join (Select 退货物流单号,店铺,sum(数量) As 退货数量 from {管家退货明细账} group by 退货物流单号,店铺) As b on  a.物流单号 = b.退货物流单号"


 回到顶部