Advertisement
DjonathanKrause

qtd 0

Feb 23rd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. select * from t_order
  2. where cust_po_number is not null
  3. and order_number in (select order_number from t_al_host_order_detail where qty = 0)
  4. and type_id = '1669';
  5.  
  6.  
  7. select * from t_al_host_order_master alorm
  8. where (alorm.order_number, alorm.wh_id) in (select order_number, wh_id from t_order
  9. where order_id in (2345904,2085631,2085632,2085633,2085635,2101152,2363964,2363966,2345903,2085634,2101153))
  10. order by order_number;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement