Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GO
- SELECT p.*
- FROM price
- LEFT JOIN product AS p ON p.id = price.product_id
- WHERE price.salessituation_id != 1
- EXCEPT
- SELECT p.*
- FROM price
- LEFT JOIN product AS p ON p.id = price.product_id
- WHERE price.salessituation_id = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement