Skip to content

Instantly share code, notes, and snippets.

@ToddKerpelman
Last active May 17, 2019 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ToddKerpelman/3f91f1ff9dcade44e895ed85b92c3680 to your computer and use it in GitHub Desktop.
Save ToddKerpelman/3f91f1ff9dcade44e895ed85b92c3680 to your computer and use it in GitHub Desktop.
SELECT DISTINCT(user_pseudo_id) FROM
(SELECT user_pseudo_id,
(SELECT value.string_value
FROM UNNEST(user_properties)
WHERE key = "initial_extra_steps") AS initial_steps
FROM `firebase-public-project.analytics_153293282.events_*`
WHERE _table_suffix BETWEEN '20180731' AND '20180829'
)
WHERE initial_steps = "20"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment