Raw BigQuery Log-data for 1st Day Installers

前端 未结 1 800
一整个雨季
一整个雨季 2021-01-28 11:16

I am fairly new to StandardSQL, and wanted to export Raw BigQuery log-data for users that installed on a given date (1st June 2017) with first 3-week\'s session data on and afte

相关标签:
1条回答
  • 2021-01-28 11:50

    Try below
    I assumed - user_dim is record, and event_dim is record, repeated

    #standardSQL
    SELECT 
      user_dim.first_open_timestamp_micros, 
      user_dim.app_info.app_instance_id, 
      event.date, event.name, 
      event.timestamp_micros, 
      event.previous_timestamp_micros
    FROM `your_table_id.app_events_*`, UNNEST(event_dim) AS event
    WHERE _TABLE_SUFFIX BETWEEN '20170601' AND '20170621' 
    AND user_dim.first_open_timestamp_micros BETWEEN 1496275200000 AND 1496361600000
    
    0 讨论(0)
提交回复
热议问题