Hi all,
I have a DTS that loads the data in a temp table and then insert new records into the live table with:
Select distinct * from Table_Temp t1
where not exists(select custnr from Table1 t2 where t1.custno=t2.custno)
What's the easiest way to update fields in the 'not new records'? Is there alternative way other than:
Update Table1 t2
set
t2.Field1=t1.field1,
...
t2.Field99=t1.field99
/Kent J.
I have a DTS that loads the data in a temp table and then insert new records into the live table with:
Select distinct * from Table_Temp t1
where not exists(select custnr from Table1 t2 where t1.custno=t2.custno)
What's the easiest way to update fields in the 'not new records'? Is there alternative way other than:
Update Table1 t2
set
t2.Field1=t1.field1,
...
t2.Field99=t1.field99
/Kent J.