---
title: "Join Types supported in ClickHouse"
description: "ClickHouse supports all standard SQL join types plus analytics-oriented variants: INNER, LEFT/RIGHT/FULL OUTER, CROSS, LEFT/RIGHT SEMI, LEFT/RIGHT ANTI, LEFT/RIGHT/INNER ANY, and ASOF joins."
url: "https://swe.quest/articles/join-types-supported-in-clickhouse-41a687e1e862f9b6"
canonical: "https://clickhouse.com/blog/clickhouse-fully-supports-joins-part1"
source: "ClickHouse"
published: "2023-03-02"
difficulty: "medium"
kind: "How-to"
reading_minutes: 13
tags: ["sql","analytics","query-engines","databases"]
---

# Join Types supported in ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-03-02, 13 min read, How-to. Original: [https://clickhouse.com/blog/clickhouse-fully-supports-joins-part1](https://clickhouse.com/blog/clickhouse-fully-supports-joins-part1)

## Summary

ClickHouse supports all standard SQL join types plus analytics-oriented variants: INNER, LEFT/RIGHT/FULL OUTER, CROSS, LEFT/RIGHT SEMI, LEFT/RIGHT ANTI, LEFT/RIGHT/INNER ANY, and ASOF joins. Each type is illustrated with Venn diagrams and runnable queries against a normalized IMDB dataset. The examples show ClickHouse-specific behaviour: non-matching rows get default values rather than NULLs unless configured otherwise. A CROSS JOIN with a WHERE join condition is rewritten into an ALL INNER JOIN, visible via EXPLAIN SYNTAX. ANY joins disable the cartesian product and return only the first match.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Query engines](https://swe.quest/tags/query-engines.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQL joins ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- relational schema basics

## Keywords

ClickHouse, ASOF JOIN, ANY JOIN, SEMI JOIN, ANTI JOIN, EXPLAIN SYNTAX, IMDB dataset

## Related posts

- [Choosing the Right Join Algorithm](https://swe.quest/articles/choosing-the-right-join-algorithm-3a2fc89a0d23b80c.md): ClickHouse · 2023-06-27 · Medium · 13 min read · Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickHouse offers six join algorithms (direct, hash, parallel hash, grace hash, full sorting merge, partial merge), and the right choice depends on speed, memory and supported join types.
- [ClickHouse Joins Under the Hood - Direct Join](https://swe.quest/articles/clickhouse-joins-under-the-hood-direct-join-4c5bfc57b28f012b.md): ClickHouse · 2023-06-07 · Medium · 15 min read · Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickHouse's direct join is its fastest join algorithm. It applies when the right-hand table sits on storage that supports low-latency key-value lookups: the Join engine, EmbeddedRocksDB or a Dictionary.
- [ClickHouse Release 24.12](https://swe.quest/articles/clickhouse-release-24-12-a4df30e6ccdd0296.md): ClickHouse · 2025-01-09 · Medium · 15 min read · Analytics & OLAP, Query engines, Performance engineering, SQL
  ClickHouse 24.12 adds LIKE and unknown-value equality/IN support for Enums, an experimental descending MergeTree sorting key, JSON subcolumns as primary key columns, Iceberg REST catalog (Unity, Polaris) and schema evolution support, and automatic JOIN side swapping via query\_plan\_join\_swap\_table.
- [ClickHouse Release 25.10](https://swe.quest/articles/clickhouse-release-25-10-a4195d25b3b54d91.md): ClickHouse · 2025-11-07 · Medium · 17 min read · Query engines, Analytics & OLAP, Performance engineering, Vector search, SQL
  ClickHouse 25.10 focuses on JOIN performance, adding lazy columns replication (an index column pointing at the original data instead of copying duplicated values), runtime Bloom filters built from the right-side join keys and applied as PREWHERE on the left side for parallel hash joins, push-down of OR conditions that reference both join sides, and automatic column statistics via auto\_statistics\_types to feed join reordering.
- [ClickHouse Release 26.7](https://swe.quest/articles/clickhouse-release-26-7-1ce7ef970afa5876.md): ClickHouse · 2026-08-06 · Medium · 30 min read · Query engines, Analytics & OLAP, Performance engineering, Vector search
  ClickHouse 26.7 ships 61 features, 112 performance optimizations and 329 bug fixes, led by a fused ordered-aggregation pipeline that pushes LIMIT into in-order GROUP BY.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
