Identify users who have placed a bet every day for the last week using a single query for BetMGM.
Use the latest bet date in bets as the end of the seven-day period. Count a user as active for a day if they placed at least one bet that day.
user_id and username.user_id ascending.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique BetMGM user identifier |
| username | VARCHAR(100) | User display name |
| Column | Type | Description |
|---|---|---|
| bet_idPK | INT | Unique bet identifier |
| user_id | INT | User who placed the bet |
| bet_date | DATE | Calendar date when the bet was placed |