This repository contains SQL scripts and datasets for building a Data Warehouse using a Bronze, Silver, and Gold layered architecture. The project is designed to handle structured data, providing a robust pipeline for data ingestion, transformation, and analytics.
Data-Warehouse/
│── Datasets/ # Contains sample datasets
│── docs/ # Documentation folder
│── scripts/ # SQL scripts for data processing
│ │── bronze_layer/ # Raw data layer
│ │ ├── ddl_bronze.SQL
│ │ ├── pron_load_bronze.SQL
│ │── silver_layer/ # Cleansed and transformed data layer
│ │ ├── pron_load_silver.SQL
│ │── gold_layer/ # Aggregated and analytics-ready data layer
│ │ ├── ddl_gold.sql
│ ├── init_database.sql # Script to initialize the database
│ ├── placeholder/ # Placeholder directory
│── tests/ # Test cases for validation
│ ├── LICENSE
│ ├── README.md
-
Bronze Layer:
- Stores raw, unprocessed data.
- Contains
ddl_bronze.SQL
for defining tables. pron_load_bronze.SQL
handles data ingestion.
-
Silver Layer:
- Cleansed and enriched data.
pron_load_silver.SQL
transforms data from the Bronze layer.
-
Gold Layer:
- Analytics-ready, aggregated data.
ddl_gold.sql
contains schema definitions for final tables.
- Install Microsoft SQL Server.
- Install SQL Server Management Studio (SSMS) for database management.
- Ensure you have administrative access to create and modify databases.
-
Clone the repository:
git clone https://github.com/rishavrajji/Data-Warehouse.git cd Data-Warehouse
-
Set up the database: Open SQL Server Management Studio (SSMS) and execute the following script:
USE master; GO CREATE DATABASE DataWarehouse; GO
-
Run data processing scripts:
- Load raw data:
USE DataWarehouse; GO :r scripts/bronze_layer/pron_load_bronze.SQL
- Transform data in Silver layer:
USE DataWarehouse; GO :r scripts/silver_layer/pron_load_silver.SQL
- Create final analytics-ready tables:
USE DataWarehouse; GO :r scripts/gold_layer/ddl_gold.sql
- Load raw data:
- Microsoft SQL Server – Database Management
- T-SQL (Transact-SQL) – Data Processing and Transformation
- Git & GitHub – Version Control
This project is licensed under the MIT License. See the LICENSE file for details.
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a new branch (
feature-branch
) - Commit your changes
- Push to your branch
- Create a pull request
For any issues, please open a ticket in the Issues section.
📌 Author: Rishav Raj
📌 GitHub: rishavvrajj 🚀