【发布时间】:2016-08-16 22:36:21
【问题描述】:
我有以下疑问:
'select team, count(distinct id) as distinct_id_count_w1 from myTable where timestamp > t1 and timestamp < t2 group by team'
'select team, count(distinct id) as distinct_id_count_w2 from myTable where timestamp > t2 and timestamp < t3 group by team'
是否可以将这两个查询合二为一?谢谢!
【问题讨论】: