https://github.com/mariann95/sql_data_warehouse_and_analytics_project
Building a modern data warehouse with SQL Server, including ETL processes, data modeling, and analytics. This repository also contains a collection of SQL scripts demonstrating various analytical techniques, such as changes over time, cumulative, performance, data segmentation, part-to-whole analysis.
https://github.com/mariann95/sql_data_warehouse_and_analytics_project
data-analysis data-analytics data-cleaning data-engineering data-lakehouse data-science data-science-portfolio data-warehouse data-warehousing datalake datawarehouse datawarehousing etl etl-job etl-pipeline medallion-architecture sql sql-query sql-server sqlserver
Last synced: 7 months ago
JSON representation
Building a modern data warehouse with SQL Server, including ETL processes, data modeling, and analytics. This repository also contains a collection of SQL scripts demonstrating various analytical techniques, such as changes over time, cumulative, performance, data segmentation, part-to-whole analysis.
- Host: GitHub
- URL: https://github.com/mariann95/sql_data_warehouse_and_analytics_project
- Owner: Mariann95
- License: mit
- Created: 2025-01-29T13:21:19.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-28T13:13:07.000Z (7 months ago)
- Last Synced: 2025-02-28T19:33:41.390Z (7 months ago)
- Topics: data-analysis, data-analytics, data-cleaning, data-engineering, data-lakehouse, data-science, data-science-portfolio, data-warehouse, data-warehousing, datalake, datawarehouse, datawarehousing, etl, etl-job, etl-pipeline, medallion-architecture, sql, sql-query, sql-server, sqlserver
- Language: TSQL
- Homepage:
- Size: 2.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Data Warehouse and Analytics Project
Welcome to the **Data Warehouse and Analytics Project** repository! ๐
This project demonstrates a comprehensive data warehousing and analytics solution, from building a data warehouse to generating
actionable insights. Designed as a portfolio project, it highlights industry best practices in data engineering and analytics.By Mariann รcs-Kovรกcs
#### [LinkedIn profile](https://www.linkedin.com/in/mariann95/)
---
## ๐ Project OverviewThis project involves:
1. **Data Architecture**: Designing a Modern Data Warehouse Using Medallion Architecture **Bronze**, **Silver**, and **Gold** layers.
2. **ETL Pipelines**: Extracting, transforming, and loading data from source systems into the warehouse.
3. **Data Modeling**: Developing fact and dimension tables optimized for analytical queries.
4. **Analytics & Reporting**: Creating SQL-based reports and dashboards for actionable insights.๐ฏ This project showcases my expertise in:
- SQL Development
- Data Architect
- Data Engineering
- ETL Pipeline Developer
- Data Modeling
- Data Analytics---
## ๐ ๏ธ Important Links & Tools:
Everything is for Free!
- **[Datasets](datasets/):** Access to the project dataset (csv files).
- **[SQL Server Express](https://www.microsoft.com/en-us/sql-server/sql-server-downloads):** Lightweight server for hosting your SQL database.
- **[SQL Server Management Studio (SSMS)](https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16):** GUI for managing and interacting with databases.---
## ๐ Project Requirements
### Building the Data Warehouse (Data Engineering) ๐ง
#### Objective
Develop a modern data warehouse using SQL Server to consolidate sales data, enabling analytical reporting and informed decision-making.#### Specifications
- **Data Sources**: Import data from two source systems (ERP and CRM) provided as CSV files.
- **Data Quality**: Cleanse and resolve data quality issues prior to analysis.
- **Integration**: Combine both sources into a single, user-friendly data model designed for analytical queries.
- **Scope**: Focus on the latest dataset only; historization of data is not required.
- **Documentation**: Provide clear documentation of the data model to support both business stakeholders and analytics teams.---
### BI: Analytics & Reporting (Data Analysis) ๐
A comprehensive collection of SQL scripts for data exploration, analytics, and reporting. These scripts cover various analyses such as database exploration, measures and metrics, time-based trends, cumulative analytics, segmentation, and more. This repository contains SQL queries designed to help data analysts and BI professionals quickly explore, segment, and analyze data within a relational database. Each script focuses on a specific analytical theme and demonstrates best practices for SQL queries.#### Objective
Develop SQL-based analytics to deliver detailed insights into:
- **Customer Behavior**
- **Product Performance**
- **Sales Trends**These insights empower stakeholders with key business metrics, enabling strategic decision-making.
For more details, refer to [documents/requirements.md](documents/requirements.md).
---
## ๐๏ธ Data Architecture
The data architecture for this project follows Medallion Architecture **Bronze**, **Silver**, and **Gold** layers:

1. **Bronze Layer**: Stores raw data as-is from the source systems. Data is ingested from CSV Files into SQL Server Database.
2. **Silver Layer**: This layer includes data cleansing, standardization, and normalization processes to prepare data for analysis.
3. **Gold Layer**: Houses business-ready data modeled into a star schema required for reporting and analytics.---
## โ๏ธ Data Integration
Relationships between tables in the Customer Relationship Management (CRM) and Enterprise Resource Planning (ERP) systems.
The diagram is divided into two main sections: the left side represents the CRM system, and the right side represents the ERP system.
---
## ๐ โ ๐ Data Flow
The data flow diagram is illustrating the data lineage from source systems to different data layers. It shows the transformation
and flow of data through different stages, ensuring data quality and readiness for analysis or reporting.
---
## โญ Data Model
The diagram represents a star schema data model for a sales data mart. The star schema comprises three tables:
**gold.dim_customers**, **gold.fact_sales**, and **gold.dim_products**.
---
## ๐ Repository Structure
```
data-warehouse-project/
โ
โโโ datasets/ # Raw datasets used for the project (ERP and CRM data)
โ
โโโ documents/ # Project documentation and architecture details
โ โโโ data_architecture.drawio # Draw.io file shows the project's architecture
โ โโโ data_catalog.md # Catalog of datasets, including field descriptions and metadata
โ โโโ data_flow.drawio # Draw.io file for the data flow diagram
โ โโโ data_integration.drawio # Draw.io file for how the tables are related
โ โโโ data_model.drawio # Draw.io file for data model (star schema)
โ โโโ naming-conventions.md # Consistent naming guidelines for tables, columns, and files
โ
โโโ scripts/ # SQL scripts for ETL and transformations and for data exploration, analytics, and reporting
โ โโโ bronze/ # Scripts for extracting and loading raw data
โ โโโ silver/ # Scripts for cleaning and transforming data
โ โโโ gold/ # Scripts for creating analytical models
โ โโโ Exploratory Data Analysis (EDA)/ # Scripts for understanding data
โ โโโ Advanced Data Analytics + Reports/ # Scripts for answering business questions
โ
โโโ tests/ # Test scripts and quality files
โ
โโโ README.md # Project overview and instructions
โโโ LICENSE # License information for the repository
โโโ .gitignore # Files and directories to be ignored by Git
โโโ requirements.txt # Dependencies and requirements for the project
```
---## ๐ก๏ธ License
This project is licensed under the [MIT License](LICENSE). You are free to use, modify, and share this project with proper attribution.