Zitat Zitat von Progras Beitrag anzeigen
update tst01pf t
set t.teat05= coalesce((select s.soeipr
from son01pf s
where t.tetenr = s.soid4
and s.sofa =01
and s.sodtbi >= 161231
and s.soeipr <> 0
and s.soeipr is not null
and s.soid1=30600
and t.tefa = 10
and s.sosts = 0
fetch first 1 rows only), 0)
where t.tefa = 10
Progras
Da sieht mir schwer nach einem ERP System aus Koblenz aus ;-)

GG 4943