![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 07 Nov 2006 @ 23:03:20 GMT
Sonje, Zdravko wrote:
> UPDATE lp_test_table lp1 from
> (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) mytbl(col1)
> SET NEXT_OB_TMSTMP = mytbl.col1;
I got "3993: Illegal usage of alias name" when I ran this one. Randall
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||