Join
A SQL operation that combines rows from two or more tables based on a condition, typically matching foreign keys to primary keys.
Join is one of the most powerful operations in relational databases. It lets you retrieve related data from multiple tables in a single query by matching rows from one table to rows in another based on a condition. Without joins, you'd need separate queries and combine the results in application code — joins solve this at the database layer, far more efficiently.
Different join types (inner, left, right, full outer) determine which rows are included: an inner join returns only matching rows, while a left outer join preserves all rows from the left table even without a match. Joins were a core idea when relational databases emerged in the 1970s. For a DBMS to be considered relational, it must perform joins efficiently. The mathematical foundation comes from the Cartesian product, though database optimizers use much smarter strategies like hash joins and merge joins.