Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 12890

Merge statement syntax question

$
0
0
In a merge statement, when source and target not matched you insert, but when source and target matched and current_flag='Y'. You update the end_date and current_flag='N' but where are we updating the actual value(for the source and target match)? Thanks in advance.

svk


Viewing all articles
Browse latest Browse all 12890

Trending Articles



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