查询失败错误:UError:无法解析表名称:数据集名称丢失。大查询

时间:2019-02-10 02:22:51

标签: sql google-bigquery

尝试使用第二个现有BigQUery表中的数据更新现有BigQUery表并遇到问题。在SQL上生锈,并且对BigQuery不熟悉。

  

“查询失败错误:无法解析表名” IFSalesTable”:   数据集名称丢失。”

INSERT INTO IFSalesTable ( DEPCityPower_Distance, DEPCityIndividualismVSCollectivism, DEPCityMasculinityVSFemininity, DEPCityUncertainty_Avoidance, DEPCityLong_Short_term_Orientation, DEPCityIndulgence, DEPCityEstVal, DEPCityEstCtnry )
SELECT Power_Distance, IndividualismVSCollectivism, MasculinityVSFemininity, Uncertainty_Avoidance, Long_Short_term_Orientation, Indulgence, EstVal, EstCtnry
FROM IFSalesDataSet.CulturalValues
WHERE CulturalValues.Code = IFSalesTable.DEP_AP

image1 screen shot showing CulturalValues source table

image2 screen shot showing start of IFSalesTable target table (i.e. lookup variable DEP_AP)

image3 screen shot showing end of IFSalesTable target table (i.e. target vars for insert)

提前感谢清晰的新手级别指导!

1 个答案:

答案 0 :(得分:0)

我认为您应该只将数据集名称添加到INSERT INTO IFSalesTable中,这样它将是INSERT INTO IFSalesDataSet.IFSalesTable