mirror of
https://github.com/treffynnon/sqlstyle.guide.git
synced 2025-03-09 12:49:51 -05:00
Merge pull request #5 from fulldecent/patch-1
Fixes #4, uses same terminology as MySql, Postgresql, MSSQL and Oracle
This commit is contained in:
commit
db6e52c99e
1 changed files with 3 additions and 3 deletions
|
@ -257,12 +257,12 @@ SELECT r.last_name
|
||||||
AND c.chief = 'Y';
|
AND c.chief = 'Y';
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Sub-queries
|
#### Subqueries
|
||||||
|
|
||||||
Sub-queries 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
|
||||||
out using the same style as any other query. Sometimes it will make sense to have
|
out using the same style as any other query. Sometimes it will make sense to have
|
||||||
the closing parenthesis on a new line at the same character position as it's
|
the closing parenthesis on a new line at the same character position as it's
|
||||||
opening partner—this is especially true where you have nested sub-queries.
|
opening partner—this is especially true where you have nested subqueries.
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT r.last_name,
|
SELECT r.last_name,
|
||||||
|
|
Loading…
Reference in a new issue