you already asked this question:
First of all, you are incorrect in your assessment. They both will evaluate *exactly* the same unless there is more to your where clause that you are not sharing. And if that is the case, you need to show your whole where clause because the example given is not where the difference comes from.
Second, I do not think you understand how where clauses are processed by a database. If OR is used, then you will get all rows from the table where one OR the other is true, regardless of how the parentheses are arranged.
Have you even tested the queries with the different where clause layouts against the database (without going through .net) to confirm that they don't return the same results, as you claim?
If not, you are kind of wasting everybody's time.
Hope this helps,
Alex
[small]----signature below----[/small]
Who are you, and why should I care?
Side A: We're a community of outdated robots who refused to upgrade and came here
*changes sides*
Side B: to live a simpler existence. Free of technology.