Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- uid,
- count(*) AS children_id,
- countIf(json_data.3 = 'approved') AS children_id_approved
- FROM
- analytics.parent_properties
- ARRAY JOIN
- children AS json_data
- WHERE last_active_datetime >= today() - interval '7' day
- and is_full_register
- GROUP BY 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement