Question: SQL Given a daily login table (table_login), including date (dt) and userid (uid). date is formmating as 'yyyy-mm-dd' SELECT 1.everyday, 2.the active user of the

SQL

Given a daily login table (table_login), including date (dt) and userid (uid).

date is formmating as 'yyyy-mm-dd'

SELECT 1.everyday, 2.the active user of the day, 3.the user that logged one day and also logged in next 7 days.

For 3, we want the users that logged in today, and then they also logged in any day of the next 2-7 days.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!