tron
03-05-2003, 06:21 PM
i can use a cursor do get my desired result, however can this be done with just an sql statement?
update tbl1
set f1 = (select f2 from tbl2 where... basically a bunch of f2s)
where f2 = (select f3 from tbl2 where... basically a bunch of f3s)
all the f3s are unique.
update tbl1
set f1 = (select f2 from tbl2 where... basically a bunch of f2s)
where f2 = (select f3 from tbl2 where... basically a bunch of f3s)
all the f3s are unique.