2012-09-18 57 views
1

我試圖運行下面的查詢,但保持在遇到同樣的錯誤的BigQuery JOIN兩個表

Query Failed Error: Encountered "" at line 6, column 33. Was expecting one of:

查詢是:

SELECT 1_0_MEMBER_GROUP.User_Group,
1_0_MEMBER_GROUP.Member_ID,
1_4_MEMBER_TRAN_YEAR.MEMBER_UID
FROM [Dataset1.1_0_MEMBER_GROUP]
JOIN [Dataset1.1_4_MEMBER_TRAN_YEAR]
ON 1_0_MEMBER_GROUP.Member_ID = 1_4_MEMBER_TRAN_YEAR.MEMBER_UID

我不能工作了,爲什麼它將不會運行,並且必須結束一些非常簡單的事情。

回答

8

您應該使用表別名。嘗試

SELECT member_group.User_Group, 
member_group.Member_ID, 
member_tran_year.MEMBER_UID 
FROM [Dataset1.1_0_MEMBER_GROUP] as member_group 
JOIN [Dataset1.1_4_MEMBER_TRAN_YEAR] as member_tran_year 
ON member_group.Member_ID = member_tran_year.MEMBER_UID