Query using INNER JOIN
SELECT * FROM Table1 INNER JOIN Table2 ON Table1.Column1 = Table2.Column1
Query using JOIN
The question is what is the difference between above two syntax.
Here is the answer – They are equal to each other. There is absolutely no difference between them. They are equal in performance as well as implementation. JOIN is actually shorter version of INNER JOIN.
Personally I prefer to write INNER JOIN because it is much cleaner to read and it avoids any confusion if there is related to JOIN. For example if users
had written INNER JOIN instead of JOIN there would have been no
confusion in mind and hence there was no need to have original question.
No comments:
Post a Comment