select p.post_date,
count(distinctcasewhen 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 isnot nullgroupby post_date