안녕하세요.
sum함수에서 밑에 2가지 방식이 있는대요..
2개모두 결가값은 같은건가요?
,SUM(BOXmoney * a.cnt) AS TOTPRICE ,SUM(BOXmoney) * SUM(a.cnt) AS TOTPRICE . . . group by boxno