mirror of
https://github.com/treffynnon/sqlstyle.guide.git
synced 2025-03-09 12:49:51 -05:00
fix: document join exception (fixes #81)
This commit is contained in:
parent
e61d43db43
commit
d1c856a7d5
1 changed files with 10 additions and 0 deletions
|
@ -269,6 +269,16 @@ SELECT r.last_name
|
||||||
AND c.chief = 'Y';
|
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
|
||||||
|
|
||||||
Subqueries should also be aligned to the right side of the river and then laid
|
Subqueries should also be aligned to the right side of the river and then laid
|
||||||
|
|
Loading…
Reference in a new issue