Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Merge statement when not matched insert

$
0
0
I am using merge statement to update and insert records to a target table.
My question is when I use when not matched (by target) , can I add additional conditions?

For example

MERGE INTO TargetTable T
USING (select .. from table

Viewing all articles
Browse latest Browse all 3145

Trending Articles