fixed mistakes
This commit is contained in:
@@ -5,8 +5,8 @@ SELECT
|
||||
pl.title AS lesson_title,
|
||||
pc.id AS course_id,
|
||||
pc.title AS course_title,
|
||||
total_views_lesson.total_views AS total_views,
|
||||
table_unique_viewers.unique_v AS unique_viewers,
|
||||
COALESCE(total_views_lesson.total_views, 0) AS total_views,
|
||||
COALESCE(table_unique_viewers.unique_v, 0) AS unique_viewers,
|
||||
ROUND(AVG(views_one_user_per_one_lesson.views_per_viewer), 2) AS avg_views_per_viewer, --также это можно было посчитать total_views/unique_viewers
|
||||
DENSE_RANK() OVER (
|
||||
PARTITION BY pc.id
|
||||
|
||||
Reference in New Issue
Block a user