Skip to content

Commit

Permalink
SQL/SELECT: 재구매가 일어난 상품과 회원 리스트 구하기 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunnnn committed Dec 7, 2023
1 parent b0fc430 commit c26a346
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/programmers/sql/SELECT_11.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SELECT USER_ID, PRODUCT_ID
FROM ONLINE_SALE
GROUP BY USER_ID, PRODUCT_ID
HAVING COUNT(PRODUCT_ID) > 1
ORDER BY USER_ID
, PRODUCT_ID DESC;

0 comments on commit c26a346

Please sign in to comment.