select
sales.id,고객번호,구매날짜,
상품명,sum(가격),
고객명
from sales
inner join product
on sales.상품id=product.id
inner join user_table
on sales.고객번호=user_table.id
group by 구매날짜;
SQL Error [1055] [42000]: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test.sales.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
=>이렇게 에러가 떠서 위에 남긴 방법으로 해도 해결이 되지 않습니다.
=> 이런경우는 어떻게 해야할까요?
=> 버전에 따른 규칙이 달라진거면 표기 법을 바꾸어 해결해야 하는 걸까요?