【发布时间】:2015-05-26 18:29:41
【问题描述】:
我有两张表table1(复杂的一张有重复/记录列)和table2(相当简单)。我正在尝试使用以下查询创建一个新表,其中包含来自 table1 的所有列以及来自 table2 的一列:
select t1.id, t1.experience.desc, t1.experience.organization.*, t1.experience.department, t2.field2 as t1.experience.organization.newfield, t1.family_name
from [so_public.table1] as t1 left join each [so_public.table2] as t2
on t1.experience.organization.name = t2.field1
我收到一个错误无法在重复字段上分区,如下图所示。这两个表的架构也显示在各自的图像中。
当一个人想要合并来自两个表的数据时,这里是否有一般的经验法则?我想做的事有可能吗?
实际的表格要复杂得多。我只展示了足以重现问题的上下文。
【问题讨论】:
标签: google-bigquery