Show Menu
主题×

加入数据集

加入数据集后,您可以将来自查询中其他数据集的数据包含进来。 此示例使用自定义操作系统数据集将该 operatingsystemID 值映射 operatingsystem 到值。
数据集:
  • your_analytics_table
  • custom_operating_system_lookup
按页 SELECT 面视图数为前50个操作系统创建语句。
SELECT 
  b.operatingsystem AS OperatingSystem,
  SUM(a.web.webPageDetails.pageviews.value) AS PageViews
FROM your_analytics_table a 
     JOIN custom_operating_system_lookup b 
      ON a._experience.analytics.environment.operatingsystemID = b.operatingsystemid 
WHERE _ACP_YEAR=2018 
GROUP BY OperatingSystem 
ORDER BY PageViews DESC
LIMIT 50;