Skip to content

This repository contains a full Data Warehouse (DWH) project built with SQL Server following the Bronze → Silver → Gold layered architecture. The project demonstrates how raw data from CRM and ERP systems can be ingested, cleaned, standardized, and transformed into business-ready data models for analytics & reporting.

Notifications You must be signed in to change notification settings

keroloshany47/DWH_ETL_SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data Warehouse with ETL in SQL Server

This repository contains a full Data Warehouse (DWH) project built with SQL Server following the Bronze → Silver → Gold layered architecture.
The project demonstrates how raw data from CRM and ERP systems can be ingested, cleaned, standardized, and transformed into business-ready data models for analytics & reporting.


Project Overview

The DWH is designed using a 3-layered approach:

🔹 Bronze Layer (Raw Data)

  • Stores raw data directly from source systems (CRM & ERP).
  • Data is ingested as-is for traceability.
  • Operations:
    • Batch processing
    • Full load / truncate & insert

🔹 Silver Layer (Cleaned Data)

  • Contains cleaned and standardized data.
  • Applied transformations:
    • Data cleaning
    • Data Normalization
    • Data standardization
    • Derived columns
    • Data enrichment

🔹 Gold Layer (Business Data)

  • Provides business-ready models for analytics.
  • Designed as:
    • Star Schema (Fact & Dimension tables)
    • Aggregation tables & business logic views
  • Used for BI & Reporting in Power BI / Tableau.

Architecture

Architecture


Data Flow

Data Flow


Data Model

Data Model


Dashboards

Here is an example dashboard created using the Gold Layer of the Data Warehouse:

Example Dashboard

Dashboard

  • Visualizes key metrics from the Gold Layer.
  • Includes KPIs such as sales, customer insights, and maintenance rate.

📂 Repository Structure


├── Docs/                  # Project documentation & diagrams
│   ├── Arch.png
│   ├── data_flow.png
│   ├── data_integration.png
│   ├── data_model.png
│   └── Dash.png
│
├── SQL Scripts/           # ETL SQL scripts for each layer
│   ├── Bronze Layer/
│   │   ├── DDL_Bronze.sql
│   │   └── Load FROM Source TO Bronze.sql
│   ├── Silver Layer/
│   │   ├── DDL_Silver.sql
│   │   └── Load FROM Bronze TO Silver.sql
│   └── Gold Layer/
│       └── Gold_Views.sql
│
├── Source Data/           #  input data (CSV files)
│   ├── CRM
│   └── ERP
│     
└── README.md


How to Run

  1. Clone the repository:

    git clone https://github.com/keroloshany47/DWH_ETL_SQL.git
    
    
  2. Set up a SQL Server instance.

  3. Execute the scripts in order:

    • Bronze Layer → Silver Layer → Gold Layer.
  4. Load the CSV files from the Source Data folder into your database.

  5. Run the queries in Gold_Views.sql to generate Fact & Dimension tables.

  6. Connect Power BI / Tableau to the Gold Layer views for reporting.


Contact

About

This repository contains a full Data Warehouse (DWH) project built with SQL Server following the Bronze → Silver → Gold layered architecture. The project demonstrates how raw data from CRM and ERP systems can be ingested, cleaned, standardized, and transformed into business-ready data models for analytics & reporting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages