其他分享
首页 > 其他分享> > 追溯工位cycle time查询

追溯工位cycle time查询

作者:互联网

以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