We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2458057 commit 44ec15cCopy full SHA for 44ec15c
src/concepts/sql_style.md
@@ -368,6 +368,41 @@ WHERE
368
sample_id = '42'
369
```
370
371
+## Comma at the End of the Line
372
+
373
+Commas between `SELECT` elements should always be at the end of the line.
374
+For example:
375
376
+**Good**
377
378
+```sql
379
+SELECT
380
+ client_id,
381
+ os_name,
382
+ submission_date
383
+FROM
384
+ main_summary
385
+WHERE
386
+ submission_date > '20180101'
387
+LIMIT
388
+ 10
389
+```
390
391
+**Bad**
392
393
394
395
+ client_id
396
+ , os_name
397
+ , submission_date
398
399
400
401
402
403
404
405
406
## Nested Queries
407
408
Do not use nested queries.
0 commit comments