缺少了分组条件

比如

SELECT teller_code,(select xm from sys_dict_ggczy d where d.czy=a.teller_code ) as teller_name,
SUM(TRX_NUM) SUM_TRX_NUM,
SUM(OCR_TRX_NUM) SUM_OCR_TRX_NUM,
100*(fun_formatdecstr2(round(to_number(SUM(OCR_TRX_NUM) ,'999999999.000')/ case when SUM(TRX_NUM) = 0 then 1 else SUM(TRX_NUM) end,2))) || '%' sbl
FROM rpt_pvoas_statistic a

就报这个错误,然后添加分组条件就好了

group by teller_code

 

相关文章:

  • 2021-12-12
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案