老师可以group by month 而不是group by data_format(day,‘yyyy-MM’)吗,这俩有啥区别嘛
如:
1.select domain,data_format(day,‘yyyy-MM’) as month,sum(pv) from access
group by domain,month
2.select domain,data_format(day,‘yyyy-MM’) as month,sum(pv) from access
group by domain,data_format(day,‘yyyy-MM’)