1
0
Fork 0
mirror of https://github.com/treffynnon/sqlstyle.guide.git synced 2025-03-09 12:49:51 -05:00
This commit is contained in:
Steve Mortimer 2017-05-03 10:59:34 +00:00 committed by GitHub
commit c153fb8293

View file

@ -106,8 +106,8 @@ SELECT first_name
in the object's name. in the object's name.
* If there is already a correlation with the same name then append a number. * If there is already a correlation with the same name then append a number.
* Always include the `AS` keyword—makes it easier to read as it is explicit. * Always include the `AS` keyword—makes it easier to read as it is explicit.
* For computed data (`SUM()` or `AVG()`) use the name you would give it were it * For computed columns (`SUM()` or `AVG()`) name the column the same as if it
a column defined in the schema. was defined in the schema.
```sql ```sql
SELECT first_name AS fn SELECT first_name AS fn