我已经按照查询使用连接进行处理。除了使用这些计数和连接之外,还有其他选择吗?
select
ipd.data_city as city,
count(distinct f.dim_ipinfo_id) as visitors,
count(distinct f.dim_visit_id) as visits,
count(f.dim_Pageview_id) as pageviews
from fact_table f
left join dim_data ipd on ipd.dim_data_id = f.dim_data_id
where f.dim_member_id = 725
group by city