Untitled
Anonymous
plain_text
09/26/2023 11:40 AM
684 B
21
Indexable
with users_2 as (SELECT DISTINCT user_id
FROM reports_stg.watch_content
WHERE video_id == 2
),
users_3 as (SELECT DISTINCT user_id
FROM reports_stg.watch_content
WHERE video_id == 3
)
SELECT DISTINCT user_id
FROM reports_stg.watch_content
WHERE video_id = 1
and user_id NOT IN (SELECT user_id FROM users_2)
and user_id IN (SELECT user_id FROM users_3);Editor is loading...