You can't do that with MERGE.
Do you need the actual rows or just the count?
The number of Inserts/Updates is available in dbc.QryLogSTepsV (if it's enabled):
StepName 'MRM', RowCount = Inserted, RowCount2 = Updated
Otherwise you need an extra step with a INS t3 SEL FROM t2 WHERE a/b/c match
You can't do that with MERGE.
Do you need the actual rows or just the count?
The number of Inserts/Updates is available in dbc.QryLogSTepsV (if it's enabled):
StepName 'MRM', RowCount = Inserted, RowCount2 = Updated
Otherwise you need an extra step with a INS t3 SEL FROM t2 WHERE a/b/c match
Dieter
Dieter