Skip to content

Commit

Permalink
fix: duplicate video count
Browse files Browse the repository at this point in the history
  • Loading branch information
saraburns1 committed Nov 21, 2024
1 parent 66996e0 commit 6ae1d45
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions models/video/watched_video_duration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ select
actor_id,
video_duration,
cast(video_count as Int32) as video_count,
sum(watched_time) as watched_time,
sum(rewatched_time) as rewatched_time,
count(distinct object_id) as video_count_watched
watched_time,
rewatched_time,
object_id
from course_data
full join watched_combined on watched_combined.course_key = course_data.course_key
group by org, course_key, actor_id, video_count, video_duration

0 comments on commit 6ae1d45

Please sign in to comment.