Update Statement
SQL statement that modifies column values in existing rows of a table.
Description
Modifies column values in existing rows of a table. (Teradata SQL Language Reference UPDATE)
Sample Source Patterns
Basic case
Teradata
UPDATE CRASHDUMPS.TABLE1 i
SET COLUMN4 = CRASHDUMPS.TABLE2.COLUMN3
WHERE i.COLUMN1 = CRASHDUMPS.TABLE2.COLUMN1
AND i.COLUMN3 = 'L';Snowflake
UPDATE with forward alias
Teradata supports referencing an alias before it is declared, but Snowflake does not. The transformation for this scenario is to take the referenced table and change the alias for the table name it references.
Teradata
Snowflake
UPDATE with target table in the the FROM clause
Teradata supports having the target table defined in the FROM clause, this is removed in Snowflake to avoid duplicate alias and ambiguous column reference errors.
Teradata
Snowflake
Related EWIs
No related EWIs.
Last updated
