Advertisement
kirzecy670

Untitled

Jun 16th, 2025
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.73 KB | None | 0 0
  1. WITH filtered_data AS (
  2.     SELECT DISTINCT uid
  3.     FROM stat.funnelTrack
  4.     WHERE action IN ('feature_disabled', 'feature_deactivated')
  5.       AND dt >= '2025-06-01'
  6.       AND (
  7.           simpleJSONExtractString(addJson, 'experiment') = 'android_gmd_57483_newApp_v01_ru_experiment'
  8.           OR simpleJSONExtractString(addJson, 'experimentId') = 'android_gmd_57483_newApp_v01_ru_experiment'
  9.       )
  10.       AND simpleJSONExtractString(addJson, 'details') = 'first install does not match'
  11. )
  12.  
  13. SELECT
  14.     dt,
  15.     count(uid) AS events_count,
  16.     uniqCombined(uid) AS unique_users
  17. FROM stat.funnelTrack
  18. WHERE dt >= '2025-06-01'
  19.   AND action = 'open_first'
  20.   AND uid IN (SELECT uid FROM filtered_data)
  21. GROUP BY dt
  22. ORDER BY dt DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement