Does the following message get generated before or after the additional
conditions given in the merge are evaluated?
Error: The same row of target table "NULLID.AICA" was identified more
than once for an update, delete or insert operation of the MERGE statement.
The merge statement was:
// put the bhid into all of the records SHOULD BE 8
merge into nullid.AICA t1 using is3.animals t2
on t1.assoc=t2.assoc and t1.regnum=t2.regnum
when matched and
t1.bhid is null and
t1.prefix is null and
t2.prefix is null and
t1.regnum is not null and
t2.regnum is not null
then update set t1.bhid=t2.bhid
go
Is the message generated before all of the and conditions are evaluated
or after?