Question #180331

Find the sum of durations of the videos published by each channel in hours.

Note:

  • The output must contain the duration as number of hours.
  • Sort the output in the descending order of theno_of_hours

Expert's answer

select ch.channel_name,sum(vi.view_hour)
from channel as ch, view as vi
where ch.id=vi.id

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!

LATEST TUTORIALS
APPROVED BY CLIENTS