๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/164668
-- ์ฝ๋๋ฅผ ์
๋ ฅํ์ธ์
SELECT USER_ID, NICKNAME, sum(PRICE) as TOTAL_SALES
from USED_GOODS_BOARD b join USED_GOODS_USER u on b.WRITER_ID = u.USER_ID
where STATUS = 'DONE'
group by USER_ID
having TOTAL_SALES >= 700000
order by TOTAL_SALES
๋ฐ์ํ