简而言之,我有以下 SQL 语句,table
其中包含id
我需要获取过去一年的网站行为的 s 列表。这些id
s 应该匹配customDimensions.value
SELECT fullVisitorId, visitNumber, totals.pageviews, customDimensions.value as client_id
FROM (
SELECT * FROM
TABLE_DATE_RANGE([xxxxxxx.ga_sessions_],
TIMESTAMP('2017-01-01'),
TIMESTAMP('2018-01-01'))
)
WHERE customDimensions.index = 2 AND customDimensions.value IN (SELECT STRING(id) FROM [table])
GROUP BY 1,2,3,4
我得到错误:
错误:无法加入重复字段 customDimensions.value