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

Question #210608

Get all the distinct user_ids who liked at least one video uploaded by Android Authority channel (channel_id=364) but didn't like the video uploaded by Tech savvy channel with video_id =1005.

Note : consider reaction_type as liked

Sort the output in the ascending order of user_id by using subquries


1
Expert's answer
2021-06-25T07:13:44-0400


SELECT DISTINCT user_ids FROM VIDEO V WHERE V.channel_id IN 
(SELECT channel_id FROM VIDEO WHERE V.channel_id = 364 AND V.video_id IS NOT 1005 
AND V.reaction_type = 'liked' ) ORDER BY V.user_id ASC;


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