Hallo,

ich habe die SQL-Abfrage jetzt ein wenig geändert, jetzt geht es.

update c82f/iim a set iwufi= (select iwufi from c82f/iim b where
a.iprod=b.iprod and a.immand<>b.immand and b.immand=1 and a.immand=11
and a.iwufi<>b.iwufi) where exists (select iwufi from
c82f/iim b where a.iprod=b.iprod and a.immand<>b.immand and
a.immand=11 and a.iwufi<>b.iwufi and b.immand=1)

Die Sache mit dem coalesce habe ich versucht, aber nicht ans laufen gekriegt.

Danke trotzdem!