You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no primary key for this table, it may have duplicate rows.
13
+
The activity_type column is an ENUM of type ('open_session', 'end_session', 'scroll_down', 'send_message').
14
+
The table shows the user activities for a social media website.
15
+
Note that each session belongs to exactly one user.
16
+
17
+
18
+
Required Query:
19
+
20
+
1) Find the daily active user count for a period of 30 days ending 2019-07-27 inclusively. A user was active on someday if they made at least one activity on that day.
21
+
22
+
23
+
SQL Schema:
24
+
25
+
Create table If Not Exists Activity (user_id int, session_id int, activity_date date, activity_type ENUM('open_session', 'end_session', 'scroll_down', 'send_message'))
0 commit comments