Last active
August 3, 2024 04:03
-
-
Save StalinMazaEpn/4c280ba6806d3ff1f09cbaa6c0e2cc66 to your computer and use it in GitHub Desktop.
MYSQL Shortcuts
This file contains hidden or 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
| ## Filter by month, year or day | |
| YEAR(usageDate) = 2023 | |
| MONTH(usageDate) = 12 | |
| # Manage JSON | |
| SELECT JSON_OBJECTAGG(notificationTemplateType, true) | |
| FROM (SELECT DISTINCT notificationTemplateType FROM APP_NOTIFICATION_TEMPLATE) AS unique_notification_types; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment