What is the difference between `WHERE` and `JOIN … ON` when filtering related tables?

Advanced SQL Developer Medium

Advanced SQL Developer — Medium

What is the difference between `WHERE` and `JOIN … ON` when filtering related tables?

Key points

  • JOIN ... ON specifies relationship conditions
  • WHERE filters rows after the join
  • WHERE can affect OUTER JOIN behavior
  • ON preserves all left-table rows in OUTER JOINs
  • Distinction is important for result set accuracy

Ready to go further?

Related questions