1
0
Fork 0
mirror of https://github.com/treffynnon/sqlstyle.guide.git synced 2025-03-09 12:49:51 -05:00

fix: document join exception (fixes )

This commit is contained in:
Simon Holywell 2024-02-27 11:11:40 +10:00
parent e61d43db43
commit d1c856a7d5

View file

@ -269,6 +269,16 @@ SELECT r.last_name
AND c.chief = 'Y';
```
The exception to this is when using just the `JOIN` keyword where it should be
before the river.
```sql
SELECT r.last_name
FROM riders AS r
JOIN bikes AS b
ON r.bike_vin_num = b.vin_num
```
#### Subqueries
Subqueries should also be aligned to the right side of the river and then laid