Archives of the TeradataForum
Message Posted: Thu, 07 Oct 2004 @ 08:22:44 GMT
I have a table "Transactions", that has 17 columns. Any of it's 17 columns can have a null value and the table does not have a unique key. This table would be loaded every week using mload. A particular record can be available multiple times in multiple week files. To keep track of when a record came first and when was it last loaded I have added two columns frst_load_date and last_load_date.
The frst_load_date would be populated with current date when the record being loaded is distinct from all other records. The last_load_date can be updated if the record being loaded already exists.
That means I want to update the last_load_date using all 17 columns and if the record does not exist then insert the new record. The problem I am getting is any of these 17 columns can have a null value and I can not update on column which has null values. Is there any work around for this problem.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|