07 2023 档案

备份
摘要:``` select 日期,源单单号,CompanyTax,仓位,物料名称,发料仓库,领料部门,成本对象 ,sum(申请数量) as 申请数量,sum(出库数量) as 出库数量 into #a from k3_领料单 --where 日期>=@startDate and 日期=@startDate 阅读全文

posted @ 2023-07-11 17:31 唯一的Dove 阅读(18) 评论(0) 推荐(0) 编辑

left join 常见问题
摘要:`在使用 left join 时,如果对左表过滤必须放在 where 条件中;如果对右表过滤放在 on 条件中。避免结果数据多余或缺失。` 阅读全文

posted @ 2023-07-10 18:15 唯一的Dove 阅读(14) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示