fixed mistakes
This commit is contained in:
@@ -6,7 +6,8 @@ SELECT
|
||||
COUNT(DISTINCT pu.id) AS users_in_cohort,
|
||||
COUNT(DISTINCT pe.user_id) AS enrolled_users,
|
||||
COUNT(DISTINCT plv.user_id) AS active_users,
|
||||
ROUND(COUNT(DISTINCT plv.user_id) * 100.0 / COUNT(DISTINCT pu.id), 2) || '%' AS retention_rate,
|
||||
--ROUND(COUNT(DISTINCT plv.user_id) * 100.0 / COUNT(DISTINCT pu.id), 2) || '%' AS retention_rate,
|
||||
ROUND(COUNT(pe.id) * 100.0 / COUNT(DISTINCT pu.id), 2) || '%' AS retention_rate,
|
||||
ROUND(AVG((SELECT COUNT(pe.id)
|
||||
FROM pet_enrollments pe)) / COUNT(DISTINCT pu.id), 2) AS avg_courses_per_user,
|
||||
(SELECT
|
||||
|
||||
Reference in New Issue
Block a user