我要把money中的数值相加为0的查找出来,然后查找出来的数据中筛选id相同的,该怎么做
任意组合只要加起来为0就算是吧
select id,sum(money) from 表名 where group by id having sum(money)=0 and count(id)>1