Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started