# dayoawe1/data-exploration-in-sql architecture

> Architecture diagram of the GitHub repository dayoawe1/data-exploration-in-sql, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dayoawe1/data-exploration-in-sql
- Repository: https://github.com/dayoawe1/data-exploration-in-sql

## Overview

This is a small SQL Server data-preparation project: customer data is profiled and audited, cleaned into a production table, then exposed through separate views for historical churn analysis and new-customer scoring. The README documents the workflow and reporting boundary; no SQL excerpts were provided, so the graph does not infer unshown loads or query details.

Main entry points: [`churn_data_exploration.sql`](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql) (SQL workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data_prep["Data preparation"]
  node_customer_csv["Customer dataset<br/>[Customer_Data.csv]"]
  node_sql_workflow["SQL workflow"]
  node_profiling["Distribution profiling"]
  node_null_audit["Null audit"]
  node_staging[("stg_Churn")]
  node_production[("prod_Churn")]
end

subgraph group_serving["Reporting views"]
  node_historical_view["Existing customers view"]
  node_new_view["New customers view"]
end

node_analyst(("Data analyst"))
node_power_bi["Power BI dashboard"]

node_analyst -->|"runs queries"| node_sql_workflow
node_sql_workflow -->|"profiles distributions"| node_profiling
node_sql_workflow -->|"audits nulls"| node_null_audit
node_sql_workflow -->|"cleans and loads"| node_production
node_sql_workflow -->|"creates view"| node_historical_view
node_sql_workflow -->|"creates view"| node_new_view
node_production -->|"supplies data"| node_historical_view
node_production -->|"supplies data"| node_new_view
node_historical_view -->|"serves analysis"| node_power_bi
node_new_view -->|"serves scoring"| node_power_bi

click node_customer_csv "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/Customer_Data.csv"
click node_sql_workflow "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql"
click node_profiling "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql"
click node_null_audit "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql"
click node_staging "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql"
click node_production "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql"
click node_historical_view "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql"
click node_new_view "https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_customer_csv,node_sql_workflow,node_profiling,node_null_audit,node_staging,node_production toneBlue
class node_historical_view,node_new_view toneAmber
class node_analyst,node_power_bi toneIndigo
```

## Components

### Data preparation

- [Customer dataset](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/Customer_Data.csv): `Customer_Data.csv`
- [SQL workflow](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql): `churn_data_exploration.sql`
- [Distribution profiling](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql): `churn_data_exploration.sql`
- [Null audit](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql): `churn_data_exploration.sql`
- [stg_Churn](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql): `churn_data_exploration.sql`
- [prod_Churn](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql): `churn_data_exploration.sql`

### Reporting views

- [Existing customers view](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql): `churn_data_exploration.sql`
- [New customers view](https://github.com/dayoawe1/data-exploration-in-sql/blob/main/churn_data_exploration.sql): `churn_data_exploration.sql`

### Other components

- **Data analyst**
- **Power BI dashboard**

## Connections

- Data analyst → SQL workflow: runs queries (evidence: `README.md`)
- SQL workflow → Distribution profiling: profiles distributions (evidence: `README.md`)
- SQL workflow → Null audit: audits nulls (evidence: `README.md`)
- SQL workflow → prod_Churn: cleans and loads (evidence: `README.md`)
- SQL workflow → Existing customers view: creates view (evidence: `README.md`)
- SQL workflow → New customers view: creates view (evidence: `README.md`)
- prod_Churn → Existing customers view: supplies data (evidence: `README.md`)
- prod_Churn → New customers view: supplies data (evidence: `README.md`)
- Existing customers view → Power BI dashboard: serves analysis (evidence: `README.md`)
- New customers view → Power BI dashboard: serves scoring (evidence: `README.md`)
