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
Get step-by-step solutions from verified subject matter experts
