2
하위 그룹에서 "단일 그룹이 아닌 그룹 기능"이 허용되지만 자체 기능이 아닌 이유는 무엇입니까?
첫 번째 쿼리가 두 번째 쿼리와 동일한 오류로 실패하지 않는 이유 : with w as (select 1 product_id, 10 units from dual union all select 2, 5 from dual) select sum(units) from (select product_id, sum(units) units from w); /* SUM(UNITS) ---------- 15 */ with w as (select 1 product_id, 10 …