Skip to content

Instantly share code, notes, and snippets.

@aoxu
Last active November 15, 2018 09:26
Show Gist options
  • Save aoxu/824ad14ee554414282d4eb467bf446d7 to your computer and use it in GitHub Desktop.
Save aoxu/824ad14ee554414282d4eb467bf446d7 to your computer and use it in GitHub Desktop.
[查询指定用户id在指定日期范围内的所有数据]#BigQuery
SELECT
*
FROM
`analytics_168921341.events_*` AS T,
T.event_params
WHERE
/* event_name = 'sign_up' */
/* AND event_params.key = 'guide_id'
AND event_params.value.int_value = 51 */
/* AND geo.country = 'United States'*/ /* 修改为指定国家 */
/* AND platform = 'ANDROID' */
user_id = '86715'
AND _TABLE_SUFFIX BETWEEN '20181112' AND '20181112' /* 修改为events数据范围 */
LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment