Is there any efficiency difference in an explicit vs implicit inner join? For example:
SELECT * FROM table a INNER JOIN table b ON a.id = b.id;
vs.
SELECT a.*, b.* FROM table a, table b WHERE a.id = b.id;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Performance-wise, they are exactly the same (at least in SQL Server).
PS: Be aware that the "implicit
OUTER JOIN" syntax–using*=or=*in aWHEREafter using comma–is deprecated since SQL Server 2005. (The "implicit (CROSS)JOIN" syntax using comma as used in the question is still supported.)Deprecation of "Old Style" JOIN Syntax: Only A Partial Thing