Skip to content

Instantly share code, notes, and snippets.

@adityawarmanfw
Created September 30, 2020 12:43
Show Gist options
  • Save adityawarmanfw/4020e3dd581cd533c6815e4a8b543d97 to your computer and use it in GitHub Desktop.
Save adityawarmanfw/4020e3dd581cd533c6815e4a8b543d97 to your computer and use it in GitHub Desktop.
WITH start_stop AS (
SELECT title,
user_id,
play_session,
play_session_sequence,
GENERATE_ARRAY(start_event.start,
stop_event.stop
) AS second_breakdown
FROM start_event
JOIN stop_event
USING (title,
user_id,
length,
play_session,
play_session_sequence)
)
SELECT * FROM start_stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment