标签:
select 类别, sum(数量) as 数量之和 from A group by 类别 having sum(数量) > 18
select 类别, SUM(数量)from A where 数量 gt;8 group by 类别 having SUM(数量) gt; 10
Having与Where的区别
原文地址:http://www.cnblogs.com/wicub/p/5648828.html