Skip to content

Commit

Permalink
DATE_SUB
Browse files Browse the repository at this point in the history
  • Loading branch information
mennaabdelelhady committed Jan 5, 2025
1 parent 16b87d8 commit d509584
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SELECT activity_date AS day,COUNT(DISTINCT user_id) AS active_users
FROM activity
WHERE activity_date BETWEEN DATE_SUB('2019-07-27',INTERVAL 29 DAY) AND '2019-07-27'
GROUP BY activity_date
ORDER BY activity_date;

0 comments on commit d509584

Please sign in to comment.