What is the difference between the ON and USING clauses in a JOIN, and what is a NATURAL JOIN?
Last updated
ONtakes any boolean join condition (different column names, inequalities) and keeps both join columns in the output.USING (col)is equality shorthand for identically named columns and merges them into one output column.NATURAL JOINimplicitly joins on every shared column name. It is risky because a later coincidental column (likecreated_at) silently changes results.