📜  BigQuery 从表中删除重复键 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:31.679000             🧑  作者: Mango

代码示例1
#standardSQL
CREATE OR REPLACE TABLE `myproject.datasetID.tableID` AS
SELECT * FROM (
  SELECT AS VALUE ANY_VALUE(new_table)
  FROM `myproject.dev.sample` AS new_table
  GROUP BY key1 #,key2
)