Que tal como están , tengo que realizar el sgte update pero no lo puedo
realizar por el error descrito mas abajo.
Alguien me puede ayudar a como hacerlo de manera correcta?
Gracias
Subrayo la línea donde esta el error de sintaxis
update al_aut set v_deuda = isnull(SUM(prc_importe-prc_intereses),0)
FROM e1_c_prestamos_cuo
(index=ind_e1_prc_pre_estado_fecha)
WHERE tipoprod='P'
and e1_c_prestamos_cuo.prc_estado = 'A' AND prc_pre =ctc_id
Error Server: Msg 157, Level 15, State 1, Line 1
An aggregate may not appear in the set list of an UPDATE statement.
Leer las respuestas