數據庫去重彙總 count(distinct xxx) 與distinct ; count(case when )

總括: SELECT  T.dept_one as "部門", COUNT(DISTINCT (   CASE     WHEN (is_week='1') THEN     name   ELSE    NULL   end )) as "周活"    .net FROM   (SELECT m.*, s.event_property_code,s.event_property_value FR
相關文章
相關標籤/搜索