0

When doing an SQL query,

is there any significant (or any at all) difference in performance between 'WHERE' and 'ON'?

I know there is a significant difference in the resulting set between the two for a LEFT or RIGHT JOIN.

What about an INNER JOIN?

Is there any drawback to using 'ON' for each of my selects rather than 'WHERE' at the end?

5

2 Answers 2

1

Performance wise, they should be the same. However, see this article for an opinion of an industry veteran regarding the readability and maintenace-friendliness.

While the old-style joins still work, you can't do an outer join anymore

Sign up to request clarification or add additional context in comments.

Comments

1

Execution plans for both are identical. Many people prefer the use of ON though.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.