Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. -- wf 3920 - cancelado
  2. -- wf 4556 - aprovado
  3. select * from tab_solicitacao_planejamento sp
  4. join tab_planejamento_cenario pc on sp.id_planejamento_cenario = pc.id
  5. join tab_exec_wf ewf on sp.id_exec_wf = ewf.id
  6. join tab_cenario ce on pc.id_cenario = ce.id
  7. join tab_cadastro_planejamento cp on pc.id_cadastro_planejamento = cp.id
  8. join tab_item_planejamento_oi ipoi on ipoi.id_planejamento_cenario = pc.id
  9. join tab_oi oi on ipoi.id_oi = oi.id
  10. where ce.des_cenario = 'RF03 2017/2017' and cp.des_cadastro='WASH ADDITIVES/OMO'
  11. and ipoi.id_mes_planejamento = 3
  12. --and ewf.id = 3920
  13. and oi.cod_oi = 8501010855;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement