Possible Duplicate:
Is the SQL WHERE clause short-circuit evaluated?
If we do
SELECT * FROM Business WHERE Latitude < 9 AND Latitude > 10
for example, will Latitude > 10
ever be called if Latitude is 8
for example?
What about in mysql?
What about in core data?
Is it dependent on SQL implementation or is there a definite standard that in where clause if one of the AND
statement is false than the rest won't be executed.
I asked this to know whether I can save some computational power. Say the expression after the first AND is expensive to compute such as computing distance.