SELECT *
FROM TableOne
INNER JOIN TableTwo ON TableOne.ForeignKeyID = TableTwo.PrimaryKeyID
WHERE TableTwo.SomeColumnOne = 12345;
Or
SELECT *
FROM TableOne
INNER JOIN TableTwo ON TableOne.ForeignKeyID = TableTwo.PrimaryKeyID
AND TableTwo.SomeColumnOne = 12345;
I prefer the first method since JOIN
tell us how the two tables should be bound together whereas WHERE
tell us how to filter the result set. But is there any performance difference between the two ? Or any other reason why we should prefer one over the other ?
Thanks in advance!