当前位置:网站首页>查詢生產訂單中某個(些)工作中心對應的標准文本碼
查詢生產訂單中某個(些)工作中心對應的標准文本碼
2022-07-06 05:43:00 【rarenmen】
寫一段SQL,用來查詢系統內實際發生的業務中,某一個或某一些工作中心,對應了哪些工序文本碼。話不多說,請看代碼。
select crhd.arbpl, afvc.ktsch, afvc.ltxa1, count(*) from afvc --訂單的工序 inner join afko --訂單錶頭數據PP訂單 on afko.aufpl = afvc.aufpl and afko.mandt = afvc.mandt left outer join CRHD --工作中心錶頭 on afvc.mandt = CRHD.mandt and afvc.arbid = crhd.objid where afvc.mandt = '600' and crhd.arbpl in ('WK1101', 'WK1102', 'WK1105') group by crhd.arbpl, afvc.ktsch, afvc.ltxa1 order by crhd.arbpl, afvc.ktsch, afvc.ltxa1; |
边栏推荐
猜你喜欢
04. Project blog log
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[Jiudu OJ 07] folding basket
Easy to understand IIC protocol explanation
Mysql database master-slave cluster construction
PDK工艺库安装-CSMC
Summary of deep learning tuning tricks
RustDesk 搭建一个自己的远程桌面中继服务器
清除浮动的方式
毕业设计游戏商城
随机推荐
移植InfoNES到STM32
HAC集群修改管理员用户密码
Redis message queue
Promotion hung up! The leader said it wasn't my poor skills
Solution of QT TCP packet sticking
Easy to understand IIC protocol explanation
Luogu [Beginner Level 4] array p1427 number game of small fish
[email protected] raspberry pie
jdbc使用call调用存储过程报错
C Advanced - data storage (Part 1)
备忘一下jvxetable的各种数据集获取方法
Download, install and use NVM of node, and related use of node and NRM
Zoom through the mouse wheel
Quantitative description of ANC noise reduction
初识CDN
[email protected]树莓派
PDK工艺库安装-CSMC
Web Security (VI) the use of session and the difference between session and cookie
清除浮动的方式
[Tang Laoshi] C -- encapsulation: classes and objects