I try the same SQL question on two diffrent ways and I get diffrent results.The first way is SQL view in Visual Studio
SELECT DISTINCT ruleValue
FROM rules
WHERE (ruleValue LIKE '%ORG%')
and the second one is
DataClassesDataContext db = new DataClassesDataContext();
var numRulesQueryORG = (from r in db.rulesTableNews
where r.ruleValue.Contains("ORG")
select r.ruleValue).Distinct();
In the first way I got 165 results and in the second 65 results
Does any body know what is wrong?I like to select only distinct values from column ruleValues from records that contain ORG.