mattm/sql-style-guide resource
An opinionated guide for writing clean, maintainable SQL. observed · 2026-08-28
Health v2 · maintenance only
33/100
- Activity 1
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2716
- days_rel: n/a
- days_push: 596
- n_releases_24m: 0
Adoption not part of the score
1099 stars · 114 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An opinionated style guide for writing clean, readable, and maintainable SQL, authored by a data analyst. It documents formatting conventions such as lowercase keywords, CTE usage, and column alignment with annotated examples.
Use cases
- adopt a sql formatting standard for my analytics team
- learn how to write clean readable sql queries
- find best practices for formatting ctes and joins
- set up a sql style guide for my company
- review sql code style conventions
- improve maintainability of sql in dbt or looker projects
When to choose
- you or your team lack a SQL style guide and want a well-explained starting point
- you want opinionated, example-driven formatting conventions you can adapt
- you are a data analyst or analytics engineer standardizing query style
When to avoid
- your team already follows a different established SQL style (e.g., dbt Labs or GitLab guides)
- you need an automated formatter or linter rather than a written guide
- you need dialect-specific SQL standards beyond general formatting
Facets
learning-resource · maturity stable
documentation developer-tools databases data-science tutorials cross-platform sql style-guide code-formatting best-practices data-analytics
1 source
- readme: https://github.com/mattm/sql-style-guide · fetched 2026-08-28 · 8d1e4fa57ae4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mattm/sql-style-guide | main | 33 |
For agents
markdown · JSON · MCP: product_card(name="mattm/sql-style-guide")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem