Advertisement
codisinmyvines

zapros

Dec 28th, 2021
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. SELECT id_detail
  2. FROM details d
  3. WHERE (EXISTS(SELECT 1 FROM availability_details a where quantity_in_warehouse > 100
  4. and (200 < ALL (Select quantity from shipment_accounting s where d.id_detail = a.id_detail and a.id_detail = s.id_ready_detail and a.num_warehouse = s.num_warehouse))))
  5.  
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement