https://school.programmers.co.kr/learn/courses/30/lessons/131124
SELECT M.MEMBER_NAME,R.REVIEW_TEXT,DATE_FORMAT(R.REVIEW_DATE,'%Y-%m-%d') REVIEW_DATE
FROM MEMBER_PROFILE M JOIN REST_REVIEW R ON M.MEMBER_ID =R.MEMBER_ID
WHERE R.MEMBER_ID in
(SELECT MEMBER_ID
FROM
(SELECT MEMBER_ID, COUNT(MEMBER_ID) C
FROM REST_REVIEW
GROUP BY MEMBER_ID
ORDER BY C DESC LIMIT 1)
REST_REVIEW)
ORDER BY REVIEW_DATE,REVIEW_TEXT
'SQL' 카테고리의 다른 글
[프로그래머스/MySQL] 저자 별 카테고리 별 매출액 집계하기 Level 4 (0) | 2023.02.16 |
---|---|
[프로그래머스/MySQL] 대여 횟수가 많은 자동차들의 월별 대여 횟수 구하기 Level3 (0) | 2023.02.15 |
댓글