0
我試圖使用LEFT OUTER JOIN
來查詢Fusion Table,但我永遠無法從我的連接表中獲取任何數據。Fusiontables:在查詢中使用JOIN
這裏是我的查詢
SELECT column_name_1, column_name_2, T2.other_column_name AS name
FROM table_1_id AS T1
LEFT OUTER JOIN table_2_id AS T2
ON T1.id = T2.id
我從我的第一個表中的列的結果,但是從我的連接表(T2.other_column_name AS name
)的列我得到一個錯誤Unknown column other_column_name
。我知道列名是正確的。
CREATE VIEW 'Coffee Production and GDP Per Capita' AS
(SELECT 'Coffee Producing Country', Population, 'Harvesting per capita', T2.'Income group'
FROM 1Ej110snYG9y_baaeNoZrmcAXKoTEtQVyAcY- AS T1
LEFT OUTER JOIN 1YDlqQzZHVMPxSadct1u5cBBiN341xOCMcO6kSkU AS T2
ON T1.'Coffee Producing Country' = T2.Country)
的例子與我的版本不同的是,谷歌創建一個VIEW
難道我做錯了什麼?或者我們不能在不創建VIEW
的情況下查詢多個表?