Transform raw ERP & CRM data into analytics-ready business intelligence.
A portfolio project demonstrating data warehousing, ETL, data quality, dimensional modeling, and SQL-based business analysis.
Raw operational data is often distributed across different systems, contains quality issues, and is difficult to use directly for reporting.
This project builds a structured analytical warehouse that answers business questions around:
- ๐ฅ Customer behavior
- ๐ฆ Product performance
- ๐ฐ Sales performance
- ๐ Sales trends
- ๐ Data quality and transformation
The objective is to move from raw source data โ trusted analytical data โ business insight.
This project follows a Medallion Architecture with three layers:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SOURCE SYSTEMS โ
โ ERP + CRM CSVs โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฅ BRONZE LAYER โ
โ โ
โ Raw data โ
โ Minimal transformation โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฅ SILVER LAYER โ
โ โ
โ Cleaning โ
โ Standardization โ
โ Deduplication โ
โ Data quality checks โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฅ GOLD LAYER โ
โ โ
โ Business-ready data โ
โ Star schema โ
โ Fact + Dimension tables โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ ANALYTICS โ
โ โ
โ SQL Reports & Insights โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The repository includes architecture documentation under docs/, including data architecture, data flow, ETL, data models, and the data catalog. ๎filecite๎turn11file0๎L2-L2๎
CSV SOURCE FILES
โ
โผ
EXTRACT
โ
โผ
๐ฅ BRONZE
โ
โ Clean + Validate
โผ
๐ฅ SILVER
โ
โ Model + Integrate
โผ
๐ฅ GOLD
โ
โผ
SQL ANALYTICS
โ
โผ
BUSINESS INSIGHTS
Source data is loaded with minimal changes so the original information remains available for downstream processing.
Data quality problems are addressed through cleaning, standardization, normalization, and validation.
Cleaned data is transformed into analytical models designed for efficient reporting and business analysis.
The Gold layer follows a star-schema approach:
โโโโโโโโโโโโโโโโ
โ Dim Customer โ
โโโโโโโโฌโโโโโโโโ
โ
โ
โโโโโโโโโโโโโโโโ โโโโโโผโโโโโโ โโโโโโโโโโโโโโโโ
โ Dim Product โโโโบโFact Salesโโโโโค Dim Date โ
โโโโโโโโโโโโโโโโ โโโโโโฌโโโโโโ โโโโโโโโโโโโโโโโ
โ
โผ
Sales Analytics
This separates descriptive dimensions from measurable business events and makes analytical queries easier to understand and maintain.
The transformation layer focuses on common real-world data problems such as:
- Missing or invalid values
- Inconsistent formats
- Duplicate records
- Invalid dates
- Incorrect or inconsistent categorical values
- Data type inconsistencies
- Source-system integration issues
The goal is not simply to load data, but to create a trusted analytical layer.
The analytical layer is designed to answer questions such as:
- Who are the highest-value customers?
- How does customer activity change over time?
- Which customer groups contribute the most sales?
- Which products generate the most revenue?
- Which categories perform best?
- Which products may require attention?
- What are the overall sales trends?
- How does performance change over time?
- Which products and customers drive revenue?
This project is designed to demonstrate practical analytical SQL, including:
JOINs
GROUP BY
CASE expressions
CTEs
Subqueries
Aggregations
Window Functions
ROW_NUMBER()
RANK()
LAG()
LEAD()
SUM() OVER()
AVG() OVER()
Date / time analysis
Data quality validation
The emphasis is on using SQL to answer business questions, not simply writing syntactically correct queries.
data-warehouse-project/
โ
โโโ datasets/
โ โโโ ERP + CRM source CSVs
โ
โโโ docs/
โ โโโ data_architecture.drawio
โ โโโ data_flow.drawio
โ โโโ data_models.drawio
โ โโโ etl.drawio
โ โโโ data_catalog.md
โ โโโ naming-conventions.md
โ โโโ requirements.md
โ
โโโ scripts/
โ โโโ bronze/
โ โโโ silver/
โ โโโ gold/
โ
โโโ tests/
โโโ README.md
โโโ LICENSE
โโโ requirements.txt
| Technology | Purpose |
|---|---|
| SQL Server | Data warehouse database |
| T-SQL | ETL and analytics |
| SSMS | Database development and management |
| Draw.io | Architecture and data-model diagrams |
| Git/GitHub | Version control and documentation |
- SQL Server Express or another compatible SQL Server installation
- SQL Server Management Studio (SSMS)
- Git
1. Clone repository
โ
2. Load source CSV files
โ
3. Execute Bronze scripts
โ
4. Run Silver transformations
โ
5. Build Gold analytical models
โ
6. Run analytical SQL scripts
โ
7. Explore business insights
A strong analyst needs to understand not only how to query data, but also where the data comes from and how trustworthy it is.
This project demonstrates the complete path:
Source Systems โ ETL โ Data Quality โ Data Modeling โ SQL โ Business Insights
That makes the project relevant to both Data Analyst and BI / Analytics roles.
- Connect the Gold layer to Power BI
- Add automated data-quality reporting
- Add incremental ETL processing
- Add more advanced customer analytics
- Add scheduled pipeline execution
- Add automated testing for transformation rules
- Add an executive BI dashboard
M Naveenkumar
CSE Student | Aspiring Data Analyst | SQL | Python | Business Intelligence
๐ GitHub
๐ LinkedIn