Answer to Question #284146 in Databases | SQL | Oracle | MS Access for Lovely

Question #284146

6. Get the number of videos published by each channel.


Note:


• If a channel did not upload any video, keep the no_of_videos as 0.


• Sort the output in the ascending order of channel_name.


Expected Output Format


channel_name


no of videos


1
Expert's answer
2022-01-07T15:58:53-0500
SELECT videos, COUNT(*) 
FROM channels 
GROUP BY channel_id
ORDER BY channel_name 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