Ilj*_*lja 7 multiple-databases google-bigquery
我在 BigQuery 中有每月数据,但我想创建一个年度数据库,这意味着将 12 个子数据库合并为 1 个。
怎么做到呢?
所有 12 个数据库的结构在形式上都是相同的:
日期、名称、金额、价值、Type_of_Good
我认为 JOIN 可能对我有帮助,但事实并非如此。
谢谢
您可以使用以下语法
SELECT Date, Name, Amount, Value, Type_of_Good
FROM
(select Date, Name, Amount, Value, Type_of_Good from january ...),
(select Date, Name, Amount, Value, Type_of_Good from february ...),
...
(select Date, Name, Amount, Value, Type_of_Good from december ...)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6069 次 |
| 最近记录: |