This probably ought to be a silly easy question, and I feel pretty dumb for asking, but I just can't seem to remember, and am not totally sure.
Basically, let me sum it up in an example:
Would this:
Return the same as this:
???
Any ideas, there?
Or am I making any sense at all?
I'm mainly wanting to make sure that if I leave out the 3rd "OR" conditional grouping that contains 2 different contitions, that I am not leaving out possible records...
So, in the example, I'd like to pull all records, whether they match any or all of the criteria.
Thanks for any thoughts/ideas/suggestions...
--
"If to err is human, then I must be some kind of human!" -Me
Basically, let me sum it up in an example:
Would this:
Code:
SELECT a.FruitID
FROM tblFruit a
WHERE (a.FruitColor = Red)
OR
(a.FruitWeight = 2)
Return the same as this:
Code:
SELECT a.FruitID
FROM tblFruit a
WHERE (a.FruitColor = Red)
OR
(a.FruitWeight = 2)
OR
(
(a.FruitColor = Red)
AND
(a.FruitWeight = 2)
)
Any ideas, there?
Or am I making any sense at all?
I'm mainly wanting to make sure that if I leave out the 3rd "OR" conditional grouping that contains 2 different contitions, that I am not leaving out possible records...
So, in the example, I'd like to pull all records, whether they match any or all of the criteria.
Thanks for any thoughts/ideas/suggestions...
--
"If to err is human, then I must be some kind of human!" -Me