From 74d78be5afdc576f38099921b75fcadb347864a3 Mon Sep 17 00:00:00 2001 From: dana3601 <74949532+dana3601@users.noreply.github.com> Date: Mon, 21 Apr 2025 09:22:46 +0530 Subject: [PATCH] Update # 1141. User Activity for the Past 30 Days I.sql --- .../# 1141. User Activity for the Past 30 Days I.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Social Media and Posts/# 1141. User Activity for the Past 30 Days I.sql b/Social Media and Posts/# 1141. User Activity for the Past 30 Days I.sql index 82ec77a..5c24e62 100644 --- a/Social Media and Posts/# 1141. User Activity for the Past 30 Days I.sql +++ b/Social Media and Posts/# 1141. User Activity for the Past 30 Days I.sql @@ -5,6 +5,6 @@ SELECT activity_date AS day, COUNT(DISTINCT user_id) AS active_users FROM Activity -WHERE DATEDIFF("2019-07-27", activity_date) < 30 +WHERE DATEDIFF("2019-07-27", activity_date) < 30 and DATEDIFF("2019-07-27", activity_date) >= 0 --Date difference must be positive GROUP BY activity_date