SELECT U.USER_ID, U.NICKNAME, SUM(B.PRICE) AS TOTAL_SALES
FROM USED_GOODS_BOARD B
JOIN
USED_GOODS_USER U
ON
B.WRITER_ID = U.USER_ID
WHERE B.STATUS = 'DONE'
GROUP BY U.NICKNAME, U.USER_ID
HAVING SUM(PRICE) >= 700000
ORDER BY TOTAL_SALES;
GROUP BY와 쓸 때는 SELECT를 잘 보자
너무 힘들다