[SQL문제풀기] 레스토랑 요일 별 구매금액 Top 3 영수증

silver's avatar
Mar 20, 2025
[SQL문제풀기] 레스토랑 요일 별 구매금액 Top 3 영수증
Contents
문제SQLite

문제

SQLite

내가 작성한 정답

select day, time, sex, total_bill from (select day, row_number() over (partition by day order by total_bill desc) ranking ,time, sex, total_bill from tips) where ranking in (1,2,3)
Share article

silver