I want to make an update to the reference table the field I want to update is the active_type and it is only in the table (active), which joins active and reference is the field (reference).
The active table has several example sequences (223,225,2654,455,530) and those sequences have an asset type that is (3) I want to change only 2 active sequences that are (455 and 530) but when I run the update updates everything I have that reference, I ask for help to make my update well.
table REFERENCE: reference fields
ACTIVE table: reference fields, active_type, active_sequence
update REFERENCIA
set REFERENCIA.TIPO_ACTIVO = 4
WHERE
REFERENCIA.TIPO_ACTIVO = '3'
AND REFERENCIA IN
(SELECT REFERENCIA
FROM ACTIVO
WHERE secuencia_activo in (455, 530) AND REFERENCIA = 2110260024 ) ;