sqlstyle.guide
sqlstyle.guide copied to clipboard
A consistent code style guide for SQL to ensure legible and maintainable projects
Hey folks, the guide states >Store ISO 8601 compliant time and date information (YYYY-MM-DD HH:MM:SS.SSSSS). I read that as "store it in this format" - but as far as I...
Hi, I'm creating this issue as a follow-up to a question on [twitter](https://twitter.com/Treffynnon/status/1044175586074095616). The idea is to be able to follow this issue to be notified, when there are plugins/linters...
Thank you for maintaining this! We're adopting this style guide for our software engineering team, and I noticed what looks to be a slight indentation error in the "Aliasing or...
The guide does not appear to have an opinion on indenting parenthesized table references. ```sql SELECT pmt_courses.course_name, pmt_tokens.token, pmt_orders.order_id, wp_users.user_email FROM wp_pmt_order_token JOIN pmt_tokens ON pmt_tokens.id = wp_pmt_order_token.fk_token_id JOIN pmt_courses...
In the **Choosing keys** section a grammatical mistake is made where 'effect' is used instead of 'affect'. "Deciding the column(s) that will form the keys in the definition should be...
Like `.editorconfig` or idea's `xml` file.
When a column list in a `select`, `order by` or `group by` spans multiple lines, individual lines should not end in a comma. This makes it easier to manage and...