标签:工位 modeop stocpf time et where id select cycle
以3112线,ST60为列
1.从t_modeop表中选择ST60工位和PC的步骤
select id_modeop from t_modeop where et_prod_poste='3112-60' and et_tyoper='OPE'
2.时间段选择,在t_stocpf表中选择质量状态
select id_stocpf from t_stocpf where datemodif='20220909' and heuremodif between '080500000000' and '090500000000' and et_qualpf='O'
最终查询语句为
//************
select * from t_operat where et_stocpf in (select id_stocpf from t_stocpf where datemodif='20220909' and heuremodif between '080500000000' and '090500000000' and et_qualpf='O') and et_simo in(select id_simo from t_simo where et_modeop in (select id_modeop from t_modeop where et_prod_poste='3112-60' and et_tyoper='OPE'))
//************
select id_simo from t_simo where et_modeop in (select id_modeop from t_modeop where et_prod_poste='3112-60' and et_tyoper='OPE')
select * from t_nomen where et_refakf_se='656629700A' and et_typtra='U' and et_refakf_comp is null //156123
标签:工位,modeop,stocpf,time,et,where,id,select,cycle 来源: https://www.cnblogs.com/jonvy/p/16672501.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。