Skip to main content
This cookbook contains advanced join patterns for combining data across multiple datasets. These recipes address common data collaboration scenarios.

Multi-dataset joins

Three-way join

Combine customers, orders, and products:
Follow relationships through multiple tables:

Identity-based joins with Rosetta Stone

Join datasets via resolved identities

Enrich with Rosetta Stone data

Match by identifier type


Temporal joins

Event-session matching

Match events to sessions based on timestamp:

Point-in-time lookup

Get the state of a record at a specific point in time:

Time-windowed join

Join events that occurred within a time window:

Self-joins

Compare records over time

Find duplicates


Anti-joins and exclusions

Find records without matches

Find customers who haven’t made purchases:

Find new records not in reference

Find users not in suppression list:

Exclude recent interactions

Find users without recent activity:

Enrichment patterns

Latest record enrichment

Enrich with the most recent related record:

Aggregated enrichment

Enrich with summary statistics:

Multiple attribute enrichment

Enrich from multiple sources:

Cross-dataset deduplication

Deduplicate across datasets

Merge records from multiple datasets, keeping the most complete:

Materialized view with joins

Create enriched view


Joining Datasets Guide

Complete guide to join operations

Join Performance

Understanding join performance

Common Queries

Basic query patterns

Performance Patterns

Query optimization recipes