Answer to Question #176184 in Databases | SQL | Oracle | MS Access for ghyuar

Question #176184

Get all the user_ids who liked at least 5 videos published by "Tedx" channel.

Note:

  • Consider reaction_type LIKE as liked.
  • Sort the output in the descending order of no_of_likes, and then in the ascending order of active_user_id.

Expected Output Format

active_user_id no_of_likes

... ...


1
Expert's answer
2021-03-29T18:49:39-0400
SELECT 
e.ID,
e.Name,
l.UserID
FROM Entries e LEFT JOIN Likes l ON l.EntryID = e.ID
WHERE l.UserID = 5
ORDER BY e.Name

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