S
Size: a a a
S
PВ
PВ
AK
groupArray(name)
as events,
groupArray(
timestamp)
as events_times
SELECT
arrayFirst(
time,id -> (id = 'sfs_connect_complete'), events_times,events)
as step_0_1_time,
arrayFirst(
time,id -> (id = 'sfs_connect_complete'
and
time > step_0_1_time),events_times,events)
as step_0_2_time,
user_id, events, events_times
FROM
(
SELECT
*
FROM
tracker
WHERE
net_id = 'ios'
AND
date >= '2019-11-18'
and user_id = '90524'
ORDER
BY
timestamp
DESC )
GROUP
BY
user_id
AN
ДМ
VC
S
ДМ
ДМ
S
AK
ДМ
Qu
AK
S
S
ДМ
DC
DC