326. 카테고리 별 도서 판매량 집계하기

김해준's avatar
Feb 04, 2026
326. 카테고리 별 도서 판매량 집계하기

언어 : MySQL

문제

notion image
notion image
notion image

풀이과정

BOOK 테이블 데이터 확인
notion image
BOOK_SALES 테이블 데이터 확인
notion image
2022년 1월 판매한 데이터만 조회
notion image
BOOK_SALES 테이블에 BOOK 테이블 조인
notion image
BOOK 테이블의 CATEGORY를 기준으로 그룹화
notion image
BOOK의 CATEGORY와 2022년 1월 판매량 합산만 조회하기
notion image
CATEGORY로 정렬
notion image
notion image
Share article