Perhaps one of the lesser-known clauses when it comes to SQL joins is the USING
clause. While the more widely-used ON
clause allows us to explicitly specify join conditions, the USING
clause simplifies the syntax when the join is based on columns with the same name in both tables.
In this article, we’ll dive into the USING
clause, compare it to the ON
clause, and look at examples that illustrate the difference.