Last active
September 30, 2020 13:04
-
-
Save adityawarmanfw/712ef71806bbb7540b962b1ec63a886a to your computer and use it in GitHub Desktop.
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 COUNT(DISTINCT user_id) AS player | |
FROM (SELECT * EXCEPT (sec_breakdown), | |
(SELECT COUNT(DISTINCT x) | |
FROM UNNEST(sec_breakdown) x | |
WHERE x > 0 | |
) AS sec_played | |
FROM session_sec_breakdown | |
) | |
WHERE sec_played = length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment