select Top 1 nombre from facturas where n_factura=@NumFact and replace(replace(rut, '.', ''), '-', '') <> replace(replace(@rut, '.', ''), '-', '')