This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
A.user_pseudo_id, | |
sum(A.online_time) as online_time /* 只要同一个用户在线时长的总和 */ | |
FROM | |
( | |
SELECT user_pseudo_id, event_params.value.double_value AS online_time, event_timestamp | |
FROM | |
`analytics_195246954.events_*` AS T, | |
T.event_params | |
WHERE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT stage, count(user_pseudo_id) as count FROM | |
( | |
SELECT C.user_pseudo_id, C.event_timestamp, D.stage, E.wave FROM | |
( | |
SELECT | |
A.user_pseudo_id, max(A.event_timestamp) as event_timestamp | |
FROM | |
( | |
SELECT | |
user_pseudo_id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT stage, count(user_pseudo_id) as count FROM | |
( | |
SELECT C.user_pseudo_id, C.event_timestamp, D.stage, E.wave FROM | |
( | |
SELECT | |
A.user_pseudo_id, max(A.event_timestamp) as event_timestamp | |
FROM | |
( | |
SELECT | |
user_pseudo_id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT stage, count(user_pseudo_id) as count FROM | |
( | |
SELECT C.user_pseudo_id, C.event_timestamp, D.stage, E.wave FROM | |
( | |
SELECT | |
A.user_pseudo_id, max(A.event_timestamp) as event_timestamp | |
FROM | |
( | |
SELECT | |
user_pseudo_id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT stage, count(user_pseudo_id) as count FROM | |
( | |
SELECT C.user_pseudo_id, C.event_timestamp, D.stage, E.wave FROM | |
( | |
SELECT | |
A.user_pseudo_id, max(A.event_timestamp) as event_timestamp | |
FROM | |
( | |
SELECT | |
user_pseudo_id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT stage, wave, count(user_pseudo_id) as count FROM | |
( | |
SELECT C.user_pseudo_id, C.event_timestamp, D.stage, E.wave FROM | |
( | |
SELECT | |
A.user_pseudo_id, max(A.event_timestamp) as event_timestamp | |
FROM | |
( | |
SELECT | |
user_pseudo_id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT stage, wave, count(user_pseudo_id) as count FROM | |
( | |
SELECT C.user_pseudo_id, C.event_timestamp, D.stage, E.wave FROM | |
( | |
SELECT | |
A.user_pseudo_id, max(A.event_timestamp) as event_timestamp | |
FROM | |
( | |
SELECT | |
user_pseudo_id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT B.first_open, | |
A1.entrance_animation_begin, | |
A2.guide1_begin, | |
A3.guide1_compound_food2, | |
A4.guide1_enter_name_begin, | |
A5.guide1_enter_name_end, | |
A6.guide3_begin, | |
A7.guide3_end FROM | |
( | |
SELECT count(user_pseudo_id) as first_open from ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT A1.entrance_animation_begin, | |
A2.guide1_begin, | |
A3.guide1_compound_food2, | |
A4.guide1_enter_name_begin, | |
A5.guide1_enter_name_end, | |
A6.guide3_begin, | |
A7.guide3_end FROM | |
( | |
SELECT count(user_pseudo_id) as entrance_animation_begin from ( | |
SELECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT stage, wave, count(user_pseudo_id) as count FROM | |
( | |
SELECT C.user_pseudo_id, C.event_timestamp, D.stage, E.wave FROM | |
( | |
SELECT | |
A.user_pseudo_id, max(A.event_timestamp) as event_timestamp | |
FROM | |
( | |
SELECT | |
user_pseudo_id, |