I am trying to make update
where I would need to join to join two tables.
I have the table ADJUDICACION
and the table PROVEEDOR
, in which the join would be: ADJUDICACION.ID_PROVEEDOR = PROVEEDOR.ID
. And what I wanted was that ADJUDICACION.ID_ESTADO = 701
when PROVEEDOR.ID_TIPO_PROVEEDOR = 103
.
I tried to do several things similar to this one but nothing:
UPDATE ADJUDICACION SET ADJUDICACION.ID_ESTADO = 701
FROM ADJUDICACION
JOIN PROVEEDOR ON ADJUDICACION.ID_PROVEEDOR = PROVEEDOR.ID
WHERE PROVEEDOR.PRO_ID_TIPO_PROVEEDOR = 103;