Closed ji-0630 closed 1 year ago
SELECT u.USER_ID, u.NICKNAME, sum(b.PRICE) as TOTAL_SALES
from USED_GOODS_BOARD b, USED_GOODS_USER u
where b.WRITER_ID = u.USER_ID
and b.STATUS = "DONE"
group by u.USER_ID
having TOTAL_SALES >= 700000
order by TOTAL_SALES
문제 설명