Te da error porque el select devuelve más de un registro. Posibles maneras de arreglarlo :

- (SELECT MAX(COALESCE(A.campo4, ...
- (SELECT ... FETCH FIRST 1 ROWS ONLY)

Ten en cuenta que si el select devuelve varios registros, puede que no todos sean iguales. Para asegurarte:


- SELECT DISTINCT(COALESCE(A.campo4, ...

Este te fallará si hay más de un valor diferente para cada registro a actualizar.
Saludos.

Fernando Pérez 

Cerámica Saloni. Dpto. Sistemas



gerardo.santillana escribió:
Hola a todos

 tengo una duda, como puedo solucionar esta sentencia, me esta marcando este error,  hay alguna manera de corregirla?

UPDATE p4653DBPcd/MBmL01 F SET BMISS=(SELECT COALESCE(A.campo4,
 F.BMISS) FROM libgstest/itemigtec2 A WHERE A.campo1=F.BCHLD)  

Result of SELECT more than one row.                            

Saludos a todos

Gerardo Santillana
IT Department
Delphi Mechatronic Systems
Phone USA  (956) 554 5832
Phone MX  01868 8128163   x.5832


****************************************************************************************

Note:  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.

****************************************************************************************

__________________________________________________
Forum.HELP400 es un servicio más de NEWS/400.
© Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________

Para darte de baja visita la siguente URL:
http://coyote.combios.es/mailman/listinfo/forum.help400

  
begin:vcard
fn;quoted-printable:Fernando P=C3=A9rez
n;quoted-printable:P=C3=A9rez;Fernando
org:;Sistemas
email;internet:[EMAIL PROTECTED]
tel;work:Ext. 627
x-mozilla-html:TRUE
version:2.1
end:vcard

Responder a