Skip to content

Commit 6d65568

Browse files
authored
Create 1142-user-activity-for-the-past-30-days-ii.sql
1 parent 2b85431 commit 6d65568

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Write your MySQL query statement below
2+
SELECT ifnull(ROUND(COUNT(DISTINCT session_id)/COUNT(DISTINCT user_id), 2),0.00)
3+
AS average_sessions_per_user
4+
FROM Activity
5+
WHERE activity_date >= '2019-06-28' and activity_date <= '2019-07-27';

0 commit comments

Comments
 (0)