Answer to Question #211431 in Databases | SQL | Oracle | MS Access for Madhav

Question #211431

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.

In subquries method


1
Expert's answer
2021-06-29T00:10:59-0400
SELECT vi.user_id,count(vi.reaction_type)
FROM VIDEO vi WHERE vi.channel=336 
ORDER BY no_of_reactions DESC 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS