🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Databases Beginner

What is JOIN?

An SQL operation that combines rows from two or more tables based on a related column between them.

JOINs are fundamental to querying relational databases. INNER JOIN returns rows with matches in both tables. LEFT JOIN returns all rows from the left table plus matches from the right. RIGHT JOIN is the reverse. FULL OUTER JOIN returns all rows from both tables.

CROSS JOIN produces the Cartesian product. Self-joins join a table with itself. Proper indexing on join columns is critical for performance.

Related Terms

JSONB
PostgreSQL's binary JSON data type that stores JSON documents with indexing, querying, and manipulation capabilities.
ETL (Extract, Transform, Load)
A data pipeline process that extracts data from sources, transforms it into a suitable format, and loads it into a destination system.
Partitioning
A technique of dividing large database tables into smaller, more manageable segments while maintaining a single logical table.
ORM (Object-Relational Mapping)
A technique that lets you interact with a database using object-oriented code instead of writing raw SQL queries.
EXPLAIN Plan
A database command that shows how the query planner will execute a SQL query, revealing join methods, scan types, and estimated costs.
Crosstab Query
A query that transforms rows into columns, creating a pivot table view of aggregated data.
View All Databases Terms →