728x90 반응형 in aggregated query without group by1 [MySQL] Error Code: 1140. In aggregated query without GROUP BY,expression #1 of SELECT list contains nonaggregated column %% this is incompatible with sql_mode=only_full_group_by 0.000 sec Error 코드Error Code: 1140. In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column %%% this is incompatible with sql_mode=only_full_group_by 0.000 sec 이 오류는 여러 행에 집계 값을 포함하려고 할 때 발생할 수 있습니다. 예를 들어, 행 그룹 내의 모든 행의 소계를 반환하려고 할 수 있습니다. 윈도우 함수는 이러한 결과를 얻는 데 도움이 될 수 있습니다. 첫번째 해결책 . 윈도우 함수 select `orderProduct`, `orderId`,sum(orderCount) as `총 주문수량` from `Orde.. 2024. 7. 8. 이전 1 다음 728x90 반응형