Skip to content

fedorkoondrej-bot/Data-Analysis-SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains SQL scripts and views for a comprehensive sales analytics data warehouse. It includes data model definitions and ETL transformations for customer and product dimensions, as well as fact tables. Key features: • Creation of stable dimensional views such as  gold.dim_customers  that consolidate and deduplicate customer data from multiple source tables using window functions. • Product-level aggregations incorporating sales metrics, order frequency, and product segmentation based on sales performance and recency. • Use of advanced SQL techniques including common table expressions (CTEs), window functions, and conditional logic for data transformation and summarization. • Support for data quality by eliminating duplicates via selecting latest records per customer and product. • Includes utilities for calculating customer age, customer lifetime value, product revenue analysis, and sales trends over time. • Designed to integrate smoothly into ETL pipelines with modular SQL blocks for easy maintenance and extension. This repository is ideal for data engineers, analysts, and developers focused on building robust and scalable business intelligence solutions using MySQL or compatible SQL platforms.

About

Modular SQL scripts for a MySQL data warehouse focused on sales and customer analytics. Includes dimension views, fact aggregation, and calculated metrics like age, segmentation, recency, and revenue. Designed for scalable BI with CTEs, window functions, and data quality logic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors