334. 조건에 맞는 사용자와 총 거래금액 조회하기

김해준's avatar
Feb 10, 2026
334. 조건에 맞는 사용자와 총 거래금액 조회하기

언어 : MySQL

문제

notion image
notion image

풀이 과정

USED_GOODS_BOARD 테이블 데이터 확인
notion image
USED_GOODS_USER 테이블 데이터 확인
notion image
USED_GOODS_BOARD테이블에서 판매가 완료된(status=’done’) 데이터만 조회
notion image
작성자를 기준으로 그룹화하고 판매액 총합 조회
notion image
판매 총액익 70만원 이상인 경우로 구분하기
notion image
used_goods_user테이블 조인하기
notion image
회원 ID, 닉네임, 총거래금액을 출력출력하기(총 거래금액 기준으로 오름차순 정렬)
notion image
notion image
 
Share article