Answers for "snowflake merge"

0

snowflake merge

MERGE INTO target USING (select k, max(v) as v from src group by k) AS b ON target.k = b.k
  WHEN MATCHED THEN UPDATE SET target.v = b.v
  WHEN NOT MATCHED THEN INSERT (k, v) VALUES (b.k, b.v);
Posted by: Guest on April-27-2021

Browse Popular Code Answers by Language