Hi
Hoping someone can give me some help. I've written an update sql for
informix which should be updating about 7000 records - it works fine
when I test it on only a few records, but it doesn't ever end when I run
it against all the data. when I eventually cancel out of it I get "ISAM
error: no record found - Error -111"
I use five rather large temp tables to get my update data, which I've
tried dropping before the update. I've also locked the table in
exclusive mode, and put indexes on two of the fields (there's only three
fields in each row), but still no joy.
table tmp_jjc3 contains the fields: acct, period, actuals, budget_magic;
table gl_movement contains the fields gllm_magic, gllm_period,
gllm_movement, has indexes on gllm_magic (duplicates allowed) and
gllm_magic/gllm_period (unique)
The last part of my sql is below. I'd be really grateful if someone
could tell me where I'm going wrong. Thanks!
create index ix_magic on tmp_jjc3(budget_magic,period);
begin work;
lock table gl_movement in exclusive mode;
update gl_movement
set gllm_movement =
(select actuals
from tmp_jjc3
where budget_magic = gllm_magic
and gllm_period = period)
where gllm_magic in (select budget_magic from tmp_jjc3)
and gllm_period in (select period from tmp_jjc3)
Jenny