Advertisement
kirzecy670

Untitled

Jun 16th, 2025
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.84 KB | None | 0 0
  1. WITH filtered_data AS (
  2.     SELECT
  3.         uid,
  4.         simpleJSONExtractString(addJson, 'details') as details
  5.     FROM stat.funnelTrack
  6.     WHERE action IN ('feature_disabled', 'feature_deactivated')
  7.       AND dt >= '2025-06-01'
  8.       AND (
  9.           simpleJSONExtractString(addJson, 'experiment') in ('android_gmd_57483_newApp_v01_ru_experiment', 'ios_gmd_57483_newApp_v01_ru_experiment')
  10.           OR simpleJSONExtractString(addJson, 'experimentId') in ('android_gmd_57483_newApp_v01_ru_experiment', 'ios_gmd_57483_newApp_v01_ru_experiment')
  11.       )
  12.     --   AND simpleJSONExtractString(addJson, 'details') = 'first install does not match'
  13. )
  14.  
  15. SELECT distinct uid
  16. FROM stat.funnelTrack f
  17. JOIN filtered_data d ON f.uid = d.uid
  18. WHERE f.dt >= '2025-06-16'
  19.   AND f.action = 'open_first'
  20.   and details = 'minimal date open first do not match'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement