![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 07 Nov 2012 @ 16:15:55 GMT
INSERT INTO TargetTable
SELECT CSUM(1,1)+b.Max_Id
...
FROM SourceTable a
CROSS JOIN
(SELECT ZEROIFNULL(MAX(MySurrogate_Id)) as Max_Id
FROM TargetTable
) b
Dirk Anderson
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||