How many times each user has engaged with the videos of "News for you" channel (id = 366).
Note:
. Consider engagement as LIKE or DISLIKE for a video uploaded by News for you channel.
• Ignore the users who did not engage with the channel at least once.
• Sort the output in the descending order of no_of_reactions, and then in the ascending order of user_id
Expected Output Format
user_id
No_of_reactions
SELECT vd.user_id,count(vd.reaction_type) as no_of_reactions
FROM quiz.video_content as vc,quiz.view_details as vd
where vd.user_id=336
order by no_of_reactions;
Comments
Leave a comment