Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT ce.customer_id
- , GROUP_CONCAT(ce.id) AS ids
- , SUM(main) AS s
- FROM customers_email ce
- GROUP BY ce.customer_id
- HAVING s = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement