--with application_opened as ( select original_timestamp, anonymous_id, context_ip, context_network_carrier, context_os_name, context_os_version, user_id from( SELECT original_timestamp, anonymous_id, context_ip, context_network_carrier, context_os_name, context_os_version, user_id, row_number() over (partition by anonymous_id order by original_timestamp asc) as r_n FROM `reby-safir.react_native.install_attributed` WHERE context_app_name = 'Reby' --and user_id = 'usr_3t8h6t8c4ppubjp9vjvh' and anonymous_id = '1eafe4e3-f4d8-416d-80c1-db0a95191b55' /* and _PARTITIONTIME BETWEEN TIMESTAMP_TRUNC(TIMESTAMP_MICROS(UNIX_MICROS(CURRENT_TIMESTAMP()) - 60 * 60 * 60 * 24 * 1000000), DAY, 'UTC') AND TIMESTAMP_TRUNC(CURRENT_TIMESTAMP(), DAY, 'UTC') */ ) --where r_n = 1 order by r_n asc --) ; select * from `reby-safir.react_native.identifies` where user_id = 'usr_3t8cxanx6kehxg38n5m1' order by original_timestamp asc ; select * from `reby-safir.react_native.finish_ride` where user_id = 'usr_3t8ethqfzs32sp1mcu5h' order by original_timestamp asc ;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter