Last active
October 30, 2024 12:59
-
-
Save jeansymolanza/927f44656dfcfa9eaab4f5bd392e6f1e to your computer and use it in GitHub Desktop.
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
SELECT | |
businessDate, | |
COUNT(CASE WHEN activityType = 'M' THEN 1 END) AS activityTypeMCount, | |
COUNT(CASE WHEN activityType = 'FR' THEN 1 END) AS activityTypeFRCount | |
FROM ( | |
SELECT businessDate, activityType | |
FROM g1ActivityMessageId WITH (NOLOCK) | |
WHERE inputUser LIKE 'KL_%' | |
AND inputUser != 'KL_BATCH' | |
AND inputDate IN ('2024-10-28', '2024-10-29') | |
) AS subquery | |
GROUP BY businessDate; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment