[SQL문제풀기] Spam Posts

silver's avatar
Jan 25, 2026
[SQL문제풀기] Spam Posts

문제

내가 작성한 정답

MySQL, PostgreSQL, Oracle

select p.post_date, count(distinct case when p.post_keywords like '%spam%' then p.post_id end)*100.00/ count(distinct p.post_id) spam_share from facebook_posts p join facebook_post_views v on p.post_id = v.post_id and v.viewer_id is not null group by post_date
Share article

silver