Advertisement
kirzecy670

parent_all_child_id

Sep 10th, 2024 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.36 KB | None | 0 0
  1. c_ids AS ( -- UID Родителей, ID Детей, Целевые дети
  2.     SELECT
  3.         uid,
  4.         json_data.2 AS children_id,
  5.         json_data.3 AS children_status
  6.     FROM
  7.         analytics.parent_properties
  8.     ARRAY JOIN
  9.         children AS json_data
  10.     WHERE last_active_datetime >= today() - interval '7' day
  11.     and is_full_register
  12. ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement