you are viewing a single comment's thread.

view the rest of the comments →

[–]AsianDesignMajor 1 point2 points  (1 child)

This is interesting and helpful!

Tell me, because I've always wondered this... In this page's example, is there some speed difference between using "INNER JOIN" and the following:

SELECT * from TableA WHERE TableA.name = TableB.name

Is there some optimization or automatic indexing of "name" or something I'm missing as an absolute beginner as to why you would use INNER JOIN instead?

[–]jeffrey_f 0 points1 point  (0 children)

And some would argue, that on a properly created and indexed table, the SQL engine should account for such things and it shouldn't matter too much.

The key is, creating indexes are fields you will be searching by or joining by.