sql server - FIltering on the join? -


is there argument, performance wise, filtering in join, opposed clause?

for example,

select blah tablea inner join tableb b on b.id = a.id , b.deleted = 0 a.field = 5 

as opposed to

select blah tablea inner join tableb b on b.id = a.id a.field = 5   , b.deleted = 0 

i prefer latter, because feel filtering should done in filtering section (where), there performance or other reasons either method?

if query optimizer job, there no difference @ (except clarity others) in 2 forms inner joins.

that said, left joins condition in join means filter rows out of second table before joining. condition in means filter rows out of final result after joining. mean different things.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -