Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

BigQuery Remove Duplicate Keys From Table

#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
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #BigQuery #Remove #Duplicate #Keys #From #Table
ADD COMMENT
Topic
Name
7+9 =