Last active
September 10, 2020 09:24
-
-
Save New0/8e28c8c9ecf26656d6764d52652d4eac to your computer and use it in GitHub Desktop.
Last 30 days Interval with comparison symbols
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 >= DATE_SUB(NOW(), INTERVAL 30 DAY) and t.created_at < NOW() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment