【发布时间】:2016-02-08 15:51:11
【问题描述】:
我尝试将表 B 中的 id 和 first_time 与 time_record 组合并在表 A 中输入,加入 id。但我得到了
的错误a.time_record is not a field of either table in the join
知道如何解决它吗?我很确定表 A 有这样的两列。以下是我使用的查询。
select b.id, b.first_time as day0, a.time_record,a.type
from mydata.b as b
left join each
(select id
from table_date_range(mydata.b, timestamp("2016-01-20"),timestamp("2016-02-03"))
group by id)
as a
on a.id = b.id
【问题讨论】:
标签: mysql google-bigquery