我運行下面的查詢和不斷收到錯誤消息:第N次(N,分割())BigQuery中
SELECT NTH(2,split(Web_Address_,'.')) +'.'+NTH(3,split(Web_Address_,'.')) as D , Web_Address_
FROM [Domains.domain
limit 10
Error message:
Error: (L1:110): (L1:119): SELECT clause has mix of aggregations 'D' and
fields 'Web_Address_' without GROUP BY clause
Job ID: symmetric-aura-572:job_axsxEyfYpXbe2gpmlYzH6bKGdtI
我試圖用group by clause on field D
和/或Web_address_
,但仍然得到錯誤約group by
。
有誰知道這是爲什麼?之前我曾經用類似的查詢獲得過成功。
對不起,有一個錯字。忘了''''。查詢是SELECT NTH(2,split(Web_Address_,'。'))+'。'+ NTH(3,split(Web_Address_,'。'))as D,Web_Address_ FROM [Domains.domain] limit 10 –