这是一个 SQL 查询语句,意思是从表 'log_iMonkey_iOS_overview' 中选择每个 'AppIdentifier' 的最小 'Ds',然后按照最小 'Ds' 进行分组,并统计每组中不同的 'AppIdentifier' 数量,最后将结果与表 A 中的 'Ds' 进行连接。具体来说,查询结果将包含两列:'Ds' 和 'app_count'。

join 
( 
  SELECT min_Ds as Ds, 
    count(distinct AppIdentifier) as app_count 
  FROM ( 
      select AppIdentifier, 
        min(Ds) as min_Ds 
      from log_iMonkey_iOS_overview 
      GROUP BY AppIdentifier 
    ) 
  GROUP BY min_Ds 
  order by min_Ds 
) as C on A.Ds = C.Ds
SQL 查询语句:统计每个 AppIdentifier 最小 Ds 的数量

原文地址: https://www.cveoy.top/t/topic/oBeM 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录