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.
The DWH is designed using a 3-layered approach:
- Stores raw data directly from source systems (CRM & ERP).
- Data is ingested as-is for traceability.
- Operations:
- Batch processing
- Full load / truncate & insert
- Contains cleaned and standardized data.
- Applied transformations:
- Data cleaning
- Data Normalization
- Data standardization
- Derived columns
- Data enrichment
- 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.
Here is an example dashboard created using the Gold Layer of the Data Warehouse:
- Visualizes key metrics from the Gold Layer.
- Includes KPIs such as sales, customer insights, and maintenance rate.
├── 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
-
Clone the repository:
git clone https://github.com/keroloshany47/DWH_ETL_SQL.git
-
Set up a SQL Server instance.
-
Execute the scripts in order:
- Bronze Layer → Silver Layer → Gold Layer.
-
Load the CSV files from the Source Data folder into your database.
-
Run the queries in
Gold_Views.sql
to generate Fact & Dimension tables. -
Connect Power BI / Tableau to the Gold Layer views for reporting.
- LinkedIn: kerolos-hani-data
- Email: keroloshani474@gmail.com