fixed according last comments
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/#
|
||||
/*
|
||||
- ВИТРИНА ДЛЯ АНАЛИЗА КОНВЕРСИИ ПРОХОЖДЕНИЯ КУРСА ПОЛЬЗОВАТЕЛЯМИ
|
||||
- ИТОГОВОЕ РАСПРЕДЕЛЕНИЕ ПО (user_id, course_id)
|
||||
#/
|
||||
*/
|
||||
|
||||
CREATE MATERIALIZED VIEW dm.course_completion_rate AS
|
||||
WITH t1 AS (
|
||||
SELECT DISTINCT
|
||||
SELECT
|
||||
e.user_id,
|
||||
du.name AS user_name,
|
||||
e.course_id,
|
||||
@@ -21,7 +21,7 @@ t2 AS (
|
||||
SELECT
|
||||
user_id,
|
||||
course_id,
|
||||
COUNT(lesson_id) AS lessons_viewed
|
||||
COUNT(DISTINCT lesson_id) AS lessons_viewed
|
||||
FROM core.fact_lesson_views
|
||||
GROUP BY user_id, course_id
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user