Archives of the TeradataForum
Message Posted: Mon, 05 Jul 2004 @ 17:19:42 GMT
I have to take back the conclusion part of my statement after just applying my own advice to myself and reproducing the situation with some test data. Analyzing my thinking process I can't understand why I started talking about duplicates, which were not even mentioned in the question and were not relevant here at all. Probably got carried away.
Anyway, as Dieter has just pointed out, the first record will be inserted and the second will update it, regardless whether both records happen to be the same (duplicates in the file). The fact that UPDATE is attempted before INSERT for each record in the input file guarantees that there will be no problems on this level. At least that part of my statement was correct.
I am sorry for any possible confusion caused by the previous message.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|