|
|
| Re: Different way of writing OR condition [message #642331 is a reply to message #642330] |
Tue, 08 September 2015 04:50   |
 |
Michel Cadot
Messages: 68776 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Anyway, you will write it will be an OR.
The optimizer rewrite the conditions in a canonical way for it.
Anyway you will write it, if these ways are equivalent, they will rewritten to the same thing by the optimizer.
Note that "( A and B ) or !A" is equivalent to "B or !A" (ignoring the NULL).
[Updated on: Tue, 08 September 2015 04:52] Report message to a moderator
|
|
|
|
|
|