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
-- The table holds information about food delivery to customers that make orders at some date and specify a preferred delivery date (on the same order date or after it).
14
+
15
+
16
+
-- If the preferred delivery date of the customer is the same as the order date then the order is called immediate otherwise it's called scheduled.
17
+
18
+
-- Write an SQL query to find the percentage of immediate orders in the table, rounded to 2 decimal places.
19
+
20
+
-- The query result format is in the following example:
-- 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
+
-- Write an SQL query to find the daily active user count for a period of 30 days ending 2019-07-27 inclusively. A user was active on some day if he/she made at least one activity on that day.
19
+
20
+
-- The query result format is in the following example:
0 commit comments