Google this newsgroup and read all the postings about why we do not
use the proprietary and dangerous UPDATE.. FROM.. syntax. You can use
the MERGE statement and be safe and be writing SQL instead of
dialect.
MERGE INTO A -- really awful name
USING IIMWEB AS B -- really bad alias
ON A.sku_suffix = B.iprod
WHEN MATCHED
THEN UPDATE
SET A.upc = B.idsce,
A.alt_something_description = B.idesc,
A.something_weight = B.imnnwu;
This will spot your cardinality errors. You will still get errors from
stinky data. And you should. FIX THE STINKY DATA!
I am sorry that you do not have consistent data element names in your
enterprise, but that is no reason to use aliases that make no sense or
table names like "A" in your code. Why would B tell someone
maintaining the code that we want IIMWEB?
It looks like some moron put the data types in the IIMWEB column
names. Storing a UPC as an integer is just plain wrong.
>> Stay informed about: subquery returned more than one value