Products
Time series and Real-Time Analytics
Lightning-fast ingest and querying on PostgreSQL.
Time series and Real-Time AnalyticsDeployment options & services
Support Services
Support options for your use case, infrastructure, and budget.
Open-Source Extensions and Tools
Time Series and Real-Time Analytics
AI and Vector
Security Scanner
Industries That Rely On Us
Featured Articles
Scale PostgreSQL via Partitioning: A Dev’s Intro to Hypertables
Read more
Boosting Postgres INSERT Performance by 2x With UNNEST
Read more
Documentation
Learn PostgreSQL
Learn PostgreSQL
Learn the PostgreSQL basics and scale your database performance
Timescale Benchmarks
Timescale benchmarks
See how Timescale performs against the competition
SQL joins are used to combine rows from two or more tables based on a related column between them. There are four types of SQL joins: INNER JOINS (returns records with matching values in both tables), LEFT JOINS (returns all records from the left table, and matched records from the right table), RIGHT JOINS (returns all records from the right table, and matched records from the left table), and FULL JOINS (returns all records when there is a match in either the left or the right table).
Let’s dive into each of these and learn how to use them in PostgreSQL (and, of course, Timescale!).
Understanding how the PostgreSQL parser picks a join method can be valuable to define join strategies to enhance your database performance. To learn more about this topic and take your knowledge of joins to another level, check out this article on PostgreSQL Join Type Theory.