有没有办法在CASE语句中使用聚合函数作为同一select语句的一部分?当我运行下面的查询时,我得到以下错误ORA-00937 : not a single-groupfunction00937。00000 -“不是单组组函数”。FROM TableA A
WHERE B.Type in ('ATYPE,'BTYPE') AND
我正在尝试使用一些o组函数创建一个视图,比如sum,avg等,它给出了错误。GREATEST(a,b,c,d,e)-LEAST(a,b,c,d,e) as range_value, avg(mean_value) from samplesORA-00937: not a single-groupgroupfunction00937. 00000 - "not a single-group</e
我知道像max、sysdate和months_between这样的函数,但我不知道如何在这里使用它们?我在想这个问题可以这样解决:from employees e oRA-00937: not a single-groupgroupfunction00937. 00000 - "not a single-groupgro
我似乎看不出为什么这个查询失败,在我的group by子句中,我有在我的select中的列,但我仍然得到错误。为什么会这样呢?customers c LEFT OUTER JOIN orders o USING(customer_numb)GROUPBY c.customer_first_name, c.customer_last_name获取此错误
SQL Error: ORA-00937:
当我试图在oracle中运行这个脚本时,我面临的是ORA-00979: not a GROUP BY expression 00979. 00000 - "not a GROUP BY expressionappointment a on a.medic_id = m.id groupby m.id
HAVING TO_DATE(a.appointmet_date,