[oracle] count()函数使用错误字段致使的查询失败(聚合函数聚合字段与分组字段不一致)

一 错误的SQL语句(原始的,格式是直接从word中拷贝的,存在多个错误):sql select to_char(t.fbsj, 'YYYY') as a, count(t.fbsj) from (oracle select fbsj from ods_t_ky_lwide     where函数       to_char(FBSJ, 'YYYY') <= to_char(sysdate, 'Y
相关文章
相关标签/搜索