Ver originalSELECT a.IdUsuario,CASE WHEN CONTAINS(a.Des,'PEPE') AND CONTAINS(b.Des,'P') THEN 1 ELSE 0 ENDFROM FOREMAN aINNER JOIN ADEMAN b ON a.Id = b.Id