Created
September 10, 2020 09:53
-
-
Save New0/fa6954a280636545d0824e13c5509a69 to your computer and use it in GitHub Desktop.
last 30 days distinct accounts using BETWEEN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT | |
account | |
FROM | |
messages t | |
WHERE | |
t.created_at BETWEEN DATE_SUB(NOW(), INTERVAL 30 DAY) and NOW() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment