Skip to content

Commit 0e9e44a

Browse files
committed
Update README.md
1 parent e60a99f commit 0e9e44a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@ https://github.com/cashapp/sqldelight
44

55
Snapshot 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

0 commit comments

Comments
 (0)