/plushcap/analysis/cockroach-labs/using-lateral-joins-for-business-analytics-in-cockroachdb-201

Using Lateral Joins for Business Analytics in CockroachDB 20.1

What's this blog post about?

CockroachDB's 20.1 release introduces lateral joins, which can significantly reduce the lines of code needed for business analytics. This feature allows data sources to reference columns provided by previous data sources in the same query. An example using a fictional ride-sharing company, MovR, demonstrates how lateral joins can be used to run analytic queries directly in CockroachDB. The article provides an overview of setting up CockroachDB 20.1 and presents a step-by-step guide on implementing lateral joins for calculating the average time between customers' first and second rides, which is crucial for increasing customer loyalty and profitability.

Company
Cockroach Labs

Date published
July 16, 2020

Author(s)
Andy Woods

Word count
1102

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.