Last active
September 30, 2020 13:28
-
-
Save adityawarmanfw/8b11828231a54c6cca76758599aea98d 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
WITH session_sec_breakdown AS ( | |
SELECT title, | |
user_id, | |
length, | |
play_session, | |
ARRAY_CONCAT_AGG(second_breakdown) AS sec_breakdown | |
FROM start_stop | |
GROUP BY 1,2,3,4 | |
) | |
SELECT * FROM session_sec_breakdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment