79274739

Date: 2024-12-12 10:36:09
Score: 0.5
Natty:
Report link

As @C3roe says, the timestamp and timezone are not relevant to the rate.

For the completion rate:

  1. Calculate the play time as a percentage of the runtime (episode length), and average that across the content_type.
  2. (optional): Multiply that by 100 to get the percentage if required.
  3. (optional): ROUND to N decimals places if required.
SELECT
    content_type,
    AVG(SUM([play_time(seconds)]) / SUM([Episode_length(seconds)]) * 100 AS avg_completion_rate
FROM
    Audience
GROUP BY
    content_type;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Low reputation (0.5):
Posted by: mjruttenberg