Archives of the TeradataForum
Message Posted: Tue, 07 Nov 2006 @ 19:56:31 GMT
Subj: | | Need help with error code 3706 |
|
From: | | Stone, Randall |
I'm fairly new to Teradata, so this error is really puzzling me. Here's the code:
UPDATE lp_test_table lp1
SET NEXT_OB_TMSTMP = (SELECT min(lp2.OB_TMSTMP)
FROM lp2.lp_test_table lp2
WHERE lp2.lead_num = lp1.lead_num
AND lp2.OB_TMSTMP > lp1.OB_TMSTMP);
And this is the error I get:
3706: Syntax error: expected something between '(' and the 'SELECT' keyword.
Output directed to Answerset window
Any help will be greatly appreciated.
Randall Stone
|