UPDATE consolidado_enlaces_gral SET DELEGACION = R.Delegacion FROM consolidado_enlaces_gral C Inner join REGIONES R On c.clas_ptal = R.clas_ptal