0
工作當我嘗試在谷歌的BigQuery此查詢,我得到以下錯誤:SQL查詢不是谷歌的BigQuery
"SELECT query which references non constant fields or uses aggregation functions or has one or more of WHERE, OMIT IF, GROUP
BY, ORDER BY clauses must have FROM clause."
這是怎麼回事?
SELECT fq.ds_id AS ds_id,
fq.dm_id AS dm_id,
fq.freq AS freq,
rc.rec AS rec,
rd.reg AS reg
FROM dataset.table_fq_ds fq
INNER JOIN EACH dataset.table_rc_ds rc ON (fq.ds_id = rc.ds_id)
INNER JOIN EACH dataset.table_rd_ds rd ON (fq.ds_id = rd.ds_id);
你的第二個查詢好像它實際上是正確的錯誤 - AS rec'指現場'ds_id'但沒有按」'選擇ds_id,22給它一個不變的價值或者說它來自哪個表。 –
這就是要點 - 顯示如何引入這樣的錯誤 –
對不起,我不明白你的答案,我不能再看到我的dataset.tables在你的代碼。我不認爲我的查詢沒有問題。我認爲這是一個更大的問題。 – sweeeeeet