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

Question #176180

Get the top 5 viewed videos that belong to the "GAMING" genre_type.

Note:

  • Sort the output in the descending order of no_of_views, and then in the ascending order of video_name.

Expected Output Format

video_name no_of_views


1
Expert's answer
2021-03-27T18:47:28-0400
SELECT vc.name as Video_name,vc.no_of_views
FROM quiz.video_content as vc
group by vc.name,vc.no_of_views order by vc.name asc,vc.no_of_views desc limit 0,5

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