![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 20 Jun 2006 @ 20:29:56 GMT
You can update the same target row with multiple source rows. This leads to ambiguity in deciding which one to use to update. You can have something like this:
UPDATE TAB1 FROM
(SELECT max(CNAME) cmax
FROM TAB2 b
WHERE b.COL1 = TAB1.COL1) VAL
SET COL2=VAL.CMAX;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||