标签:ice 结果 having rom change close sele 数据 where
1.按照一个列或者多个列对数据分组
2.对每个组进行聚合操作
3. 对聚合后的结果进行判断
select year(ymd),avg(price_close) as avg_price from stocks
where exchange="AAPL"
group by ymd
having avg_price>30;
标签:ice 结果 having rom change close sele 数据 where
原文地址:https://www.cnblogs.com/hapyygril/p/11108998.html