About 40,300 results
Open links in new tab
  1. MERGE (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 8, 2025 · The MERGE statement runs insert, update, or delete operations on a target table from the results of a join with a source table. For example, synchronize two tables by inserting, updating, or …

  2. OUTPUT clause (Transact-SQL) - SQL Server | Microsoft Learn

    The following example captures data returned from the OUTPUT clause of a MERGE statement, and inserts that data into another table. The MERGE statement updates the Quantity column of the …

  3. Transact-SQL statements - SQL Server | Microsoft Learn

    Nov 18, 2025 · This article summarizes the categories of statements for use with Transact-SQL (T-SQL) in addition to the SELECT statement. You can find all of the statements listed in the left-hand …

  4. Merge WHEN NOT MATCHED BY SOURCE - Microsoft Q&A

    Nov 28, 2020 · Here is a simple example that you can play with. The target table initially has the name of the numbers in Finnish, while the source table has them in English. This particular MERGE, causes …

  5. マージ (Transact-SQL) - SQL Server | Microsoft Learn

    MERGE ステートメントは、ソース テーブルとの結合結果から、挿入、更新、または削除操作を対象テーブルに対して実行します。

  6. Merge statement and insert data into another table

    Nov 22, 2020 · An INSERT, UPDATE, DELETE and MERGE statement can only operate on a single table. I'm not sure exactly what you want to do, but you can use the OUTPUT clause to save data …

  7. SCD Type 2 : MERGE Update and Insert - Microsoft Q&A

    Jan 4, 2024 · Hi All - I am trying to implement a Type 2 Slowly changing dimension in SQL procedure using MERGE. Here are the rules : If its a new record insert into target table with start date = …

  8. MERGE (Transact-SQL) - SQL Server | Microsoft Learn

    Die MERGE-Anweisung führt Einfüge-, Aktualisierungs- oder Löschvorgänge in einer Zieltabelle anhand der Ergebnisse eines Joins mit einer Quelltabelle aus.

  9. MERGE function - natively compiled stored procedure - SQL Server

    Aug 27, 2024 · Use this sample to learn how to simulate the Transact-SQL MERGE statement in a natively compiled module.

  10. SQL: MERGE : When not matched by SOURCE then UPDATE

    Jun 14, 2023 · Data in a system-versioned temporal table is modified using regular DML statements, excluding period column data. Use this sample to learn how to simulate the Transact-SQL MERGE …