Advertisement
Pandaaaa906

Untitled

Sep 20th, 2022
1,629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.24 KB | None | 0 0
  1. DELETE FROM chemhost.product_package pkg
  2.  
  3. WHERE pkg.brand = 'ep'
  4. AND cat_no IN (
  5.  
  6. SELECT
  7. DISTINCT cat_no
  8. FROM chemhost.product_package tmp_pkg
  9. WHERE tmp_pkg.brand = 'ep'
  10. AND tmp_pkg.PACKAGE LIKE '%*%'
  11. )
  12. AND pkg.PACKAGE NOT LIKE '%*%'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement