select user_id, product_idfrom online_sale group by user_id, product_idhaving count(product_id) >= 2 order by user_id, product_id desc똑같은 user_id가 똑같은 product_id를 재구매 한 데이터를 찾아야해서 조건을 어떻게 줘야할 지 고민했다.group by user_id, product_id 하면 파이썬의 튜플 개념으로 user_id와 product_id의 쌍으로 그룹화를 한다는 것을 배웠다, 나의 풀이)select distinct b.user_id, nickname, concat(city,' ',street_address1,' ',street_address2) as '전체주소', conc..