Tagged articles
3 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Apr 25, 2023 · Databases

How to Unnest Correlated Subqueries for Faster SQL Execution

This article explains why correlated subqueries are costly, introduces the Apply (correlated join) operator, and presents a series of systematic transformation rules that convert scalar, existential, and aggregate subqueries into efficient join‑based plans while preserving SQL semantics.

Apply OperatorDatabaseDecorrelation
0 likes · 17 min read
How to Unnest Correlated Subqueries for Faster SQL Execution