RATE THIS ANSWER
0
Click to Vote:
0
0
Hi again!
I already have the answer (I'll just use the real files and fields). Goes like this:
update FCONTF A set VALCOM = (select sum(CMCOMI) from FMCM000FEN
where CMNDOS = A.CONCON and CMNDOS not in (select CMNDOS from FMCM000F) group by CMNDOS)
where exists (select distinct CMNDOS from FMCM000FEN
where CMNDOS = A.CONCON and CMNDOS not in (select CMNDOS from FMCM000F))
Last Answered:
Apr 29 2008 5:03 PM GMT by Mr. 
70 pts.