Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. select . . . -- whatever columns you want
  2. from customer_items ci
  3. union all
  4. select . . . -- corresponding columns
  5. from master_items mi
  6. where not exists (select 1
  7. from customer_items ci2
  8. where ci2.ciname = mi.name
  9. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement