Skip to content

Build tested SQL operations analytics case study - #2

Merged
mjeans merged 1 commit into
mainfrom
feature/sql-case-study
Aug 12, 2026
Merged

Build tested SQL operations analytics case study#2
mjeans merged 1 commit into
mainfrom
feature/sql-case-study

Conversation

@mjeans

@mjeans mjeans commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Closes #1

What changed

  • added a normalized SQLite schema and deterministic synthetic database generator
  • created reusable member-activity and site-month metric views
  • added data-quality, activation, cohort-retention, site-performance, support, and anomaly queries
  • saved all aggregate query outputs for immediate review
  • added a decision memo that translates results into operational next steps without causal overclaiming
  • added five integration tests and GitHub Actions validation

Why

This case study demonstrates practical SQL analysis from data model through business communication, including joins, CTEs, conditional aggregation, date logic, cohort analysis, and window functions.

Local validation

  • rebuilt 8 sites, 480 members, 3,076 service events, and 252 support tickets from scratch
  • regenerated six query outputs
  • all data-quality checks returned zero failures
  • all five integration tests passed
  • workflow YAML, Python syntax, and CSV structures validated

All records are deterministic and synthetic.

mjeans commented Aug 12, 2026

Copy link
Copy Markdown
Owner Author

Validation complete: the GitHub Actions workflow rebuilt the deterministic demo database, ran all saved SQL queries, and passed the five automated tests. Ready to merge.

@mjeans
mjeans merged commit cf9fe29 into main Aug 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build a tested SQL operations analytics case study

1 participant