记住以下的sql: select dt ukey user_type is_pv as flagpage_typesource from gamelivedwd_huya_taskcenter_detail_with_dim_d_i where dt=$tdatestringyyyy-MM-dd and event_name in 任务中心曝光 group by dtukeyuser_ty
这个SQL查询语句用于从gamelive.dwd_huya_taskcenter_detail_with_dim_d_i表中查询任务中心曝光和签到事件的详细信息。其中,使用了group by语句对dt、ukey、user_type、page_type和source字段进行分组。通过union all语句将两个查询的结果合并在一起,最终返回的结果包含以下字段:dt、ukey、user_type、flag、page_type和source。其中,flag字段表示事件类型,可能是'is_pv'(任务中心曝光)或'is_sign'(签到)。
原文地址: http://www.cveoy.top/t/topic/4ee 著作权归作者所有。请勿转载和采集!