Advertisement
akozhomka

Untitled

Sep 27th, 2021
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.14 KB | None | 0 0
  1. SELECT ce.customer_id
  2.      , GROUP_CONCAT(ce.id) AS ids
  3.      , SUM(main) AS s
  4. FROM customers_email ce
  5. GROUP BY ce.customer_id
  6. HAVING s = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement