使用函数的列 group by 分组需要别名

问题描述

使用如下截图的SQL统计数据,报1105错误,提示all columns in group by clause should be in the selected column.

image

给格式化 的时间列加个别名,问题解决。

 image

原文地址:https://www.cnblogs.com/janehoo/p/5607964.html