helpful-carpenter-3208
08/29/2022, 8:00 PMSELECT
user_id as user_id,
1 as value,
m.timestamp as conversion_start,
m.timestamp as conversion_end
FROM
(
SELECT
distinct dec_user_id as user_id,
created_at as timestamp
from
events.track_all
where
event_category = 'Foo'
and event_action = 'Bar'
and event_label = 'Action'
-- Expect here has timestamp filter to speedup this subquery
-- and timestamp >= toDateTime('2022-08-24 00:00:00')
) m
WHERE
m.timestamp >= toDateTime('2022-08-24 00:00:00')
future-teacher-7046
helpful-carpenter-3208
08/29/2022, 9:03 PM