
user_id, product_id가 중복되는 행을 unique하게 출력하기.
select user_id, product_id
from online_sale
group by user_id, product_id
where count(*) > 1
select user_id, product_id
from online_sale
group by user_id, product_id
having count(*) > 1
order by user_id, product_id desc

where는 그룹화전, group by 는 그룹화 이후의 조건을 거는것!!!!!
오랜만에 다시풀어보니 다 까먹었도다.