在此,我得到一个错误ERROR位于第1行:ORA-00937:不是单组分组函数
ERROR位于第1行: ORA-00937:不是单组分组函数。
有人可以帮助我对此我不熟悉sql
。
select cerps_accnt_code, cost_centre, SUM(TOTAL_AMOUNT_DUE)
from globe_billing_report where tag like '%Duncan%'
在此,我得到一个错误ERROR位于第1行:ORA-00937:不是单组分组函数
ERROR位于第1行: ORA-00937:不是单组分组函数。
有人可以帮助我对此我不熟悉sql
。
select cerps_accnt_code, cost_centre, SUM(TOTAL_AMOUNT_DUE)
from globe_billing_report where tag like '%Duncan%'
使用Group by
同时使用聚合函数sql
select cerps_accnt_code, cost_centre, SUM(TOTAL_AMOUNT_DUE)
from globe_billing_report
where tag like '%Duncan%'
group by cerps_accnt_code, cost_centre
检查这些:http://stackoverflow.com /搜索q = [预言] +未+ A +单组+组+功能 –