Skip to content

Commit

Permalink
fix: document join exception (fixes #81)
Browse files Browse the repository at this point in the history
  • Loading branch information
treffynnon committed Feb 27, 2024
1 parent e61d43d commit d1c856a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _includes/sqlstyle.guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1c856a

Please sign in to comment.