In C# if I run the following.
if(obj.a() && obj.b()){
// do something
}
Function b will only execute if a returns true. Does the same thing happen below?
select
*
from
tablea a
inner join tableb b
isnumeric(b.col1) = 1
and cast(b.col1 as int) = a.id
Will the cast only be executed when b.col1 is a numeric?
You can simulate short-circuit evaluation using a CASE expression.