RT 求高手.....................
表结构呢?
Select a.*, b.* from(Select 充值人ID,充值月份 from 充值记录表 group by 充值人ID,充值月份 having sum(每次充值记录字段) > 10 where ...) a inner join 充值记录表 b ona.充值人ID = b.充值人ID and a.充值月份 = b.充值月份where ...
表结构、测试数据、预期结果