Advertisement
kirzecy670

Untitled

Jun 6th, 2025
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.40 KB | None | 0 0
  1. WITH ax AS (
  2.     SELECT
  3.         uid,
  4.         dt,
  5.         count(uid) as n_events
  6.     FROM stat.funnelTrack
  7.     WHERE dt >= '2025-06-05'
  8.       AND appVersion >= 69550
  9.       AND deviceType = 2
  10.       AND appVersion % 2 = 0
  11.       AND action IN ('full_register')
  12.     GROUP BY 1, 2
  13. )
  14.  
  15.     SELECT uid, dt, n_events
  16.     FROM ax
  17.     WHERE n_events >= 2
  18.     ORDER BY n_events DESC
  19.     LIMIT 10000
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement