Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT DISTINCT
- user_id
- FROM
- transactions
- WHERE
- id_product IN
- (SELECT
- id_product
- FROM
- products_data_all
- WHERE
- (category='молоко и сливки' AND price > 120) OR
- (category='масло сливочное и маргарин' AND price > 354));
Add Comment
Please, Sign In to add comment