File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,22 @@ https://github.com/cashapp/sqldelight
44
55Snapshot version: 2.1.0-SNAPSHOT
66
7- Initial support for lateral joins
7+ Initial support for lateral joins https://github.com/cashapp/sqldelight/pull/5337
88
9+ Not supported: Lateral joins on table expressions e.g json, arrays, sets, generate_series
910
1011``` sql
11-
12+ SELECT
13+ pledged_usd,
14+ avg_pledge_usd,
15+ duration,
16+ (usd_from_goal / duration) AS usd_needed_daily
17+ FROM Kickstarter_Data,
18+ LATERAL (SELECT pledged / NULLIF(fx_rate, 0 ) AS pledged_usd) pu,
19+ LATERAL (SELECT pledged_usd / NULLIF(backers_count, 0 ) AS avg_pledge_usd) apu,
20+ LATERAL (SELECT goal / NULLIF(fx_rate, 0 ) AS goal_usd) gu,
21+ LATERAL (SELECT goal_usd - pledged_usd AS usd_from_goal) ufg,
22+ LATERAL (SELECT (deadline - launched_at) / 86400 .00 AS duration) dr;
1223```
1324----
1425
You can’t perform that action at this time.
0 commit comments