我正在尝试运行以下查询,但继续遇到相同的错误


查询失败
错误:在第6行第33列遇到了“”。期望以下情况之一:


查询是:


SELECT 1_0_MEMBER_GROUP.User_Group,
1_0_MEMBER_GROUP.Member_ID,
1_4_MEMBER_TRAN_YEAR.MEMBER_UID
来自[Dataset1.1_0_MEMBER_GROUP]
JOIN [Dataset1.1_4_MEMBER_TRAN_YEAR]
开启1_0_MEMBER_GROUP.Member_ID = 1_4_MEMBER_TRAN_YEAR.MEMBER_UID


我无法弄清为什么它无法运行,必须仔细研究一下非常简单的内容。

最佳答案

您应该使用表别名。尝试

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

07-24 21:46