Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

MERGE...WHEN NOT MATCHED INSERT into 2 separate tables - response (1) by dnoeth

$
0
0

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
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>