관리자 매출관리 부분 질문입니다. 정보
관리자 매출관리 부분 질문입니다.본문
초보개발자로써 쇼핑몰 구축을 하고 있는데요.
매출현황을 나누고 싶습니다.
하나의 쇼핑몰에 a사의 제품과 b사의 제품이 있습니다.
각 매장마다 각각의 매출현황을 뽑고 싶습니다.
어디서부터 수정해야 할지 감이 잡히지 않습니다.
매출현황을 나누고 싶습니다.
하나의 쇼핑몰에 a사의 제품과 b사의 제품이 있습니다.
각 매장마다 각각의 매출현황을 뽑고 싶습니다.
어디서부터 수정해야 할지 감이 잡히지 않습니다.
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '282374' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php