#49. GROUP BY : 조건에 맞는 사용자와 총 거래금액 조회하기 | 프로그래머스 | SQL 고득점 Kit
문제 입력 코드1. WHERE SELECT USER.USER_ID, USER.NICKNAME, SUM(BOARD.PRICE) AS TOTAL_SALES FROM USED_GOODS_BOARD AS BOARD JOIN USED_GOODS_USER AS USER ON BOARD.WRITER_ID = USER.USER_ID WHERE BOARD.STATUS = 'DONE' GROUP BY BOARD.WRITER_ID HAVING TOTAL_SALES >= 700000 ORDER BY TOTAL_SALES ASC; 2. SUBQUERYSELECT U.USER_ID, U.NICKNAME, SUM(PRICE) AS TOTAL_SALES FROM ( SELECT * FROM USED_GOODS_BOARD WHERE ..