Teradata provide a way to perform Update & Insert operations simultaneously on a table from other table.

Teradata Upsert / Merge

Teradata provide a way to perform Update & Insert operations simultaneously on a table from other table. If update condition matches from another table then update will happen and if not then unmatched rows will be inserted in the table.

➠ Sample Table and Data


➠ Upsert / Merge using other table (Multiple operation)
➠ Basic Upsert(Conditional Insert): Upsert with hardcoded values into a table, only one action will performed i.e either UPDATE or INSERT.