Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itsmeyogesh22/solved-8-weeks-sql-challenge-correct-solutions

Included in Serious SQL Virtual apprenticeship program, this repository contains solutions for all eight different case studies crafted by Danny Ma. For more information please visit: https://8weeksqlchallenge.com/
https://github.com/itsmeyogesh22/solved-8-weeks-sql-challenge-correct-solutions

8weeksqlchallenge data dataanalytics datawithdanny postgresql sql sqlserver-2022 t-sql

Last synced: 4 days ago
JSON representation

Included in Serious SQL Virtual apprenticeship program, this repository contains solutions for all eight different case studies crafted by Danny Ma. For more information please visit: https://8weeksqlchallenge.com/

Awesome Lists containing this project

README

        


Overview




8 Weeks SQL Challenge (by Danny Ma)


The "8 Weeks SQL Challenge" is a comprehensive set of case studies designed to
strengthen SQL skills and provide hands-on experience in solving real-world
business problems. Each case study simulates a unique scenario that mimics
challenges faced in data analytics, enabling participants to analyze datasets,
write SQL queries, and draw meaningful insights.


The challenge is perfect for aspiring data analysts, data scientists, and database
professionals looking to build and showcase their SQL expertise. Or as Danny stated in
a LinkedIn post: "These case studies are not like a walk in the park".





For Serious SQL Course visit:


For 8 Weeks SQL Challenge by Danny Ma visit:




Skills Demonstrated

- **SQL Query Writing**:
- Writing efficient queries for data filtering, aggregation, and joining tables.
- Using advanced SQL techniques such as window functions, CTEs (Common Table Expressions), and subqueries.

- **Data Cleaning**:
- Handling missing values, duplicates, and inconsistent data.
- Transforming raw data into analysis-ready formats.

- **Data Analysis**:
- Identifying trends, patterns, and outliers in datasets.
- Applying business logic to extract actionable insights.

- **Performance Optimization**:
- Refactoring queries for better execution time.
- Understanding indexing and optimizing joins.

- **Problem-Solving Mindset**:
- Translating business problems into SQL-driven solutions.
- Communicating findings in a clear and concise manner.






Case Studies Overview

### 1. Case Study #1: Danny's Diner

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%231%20-%20Danny's%20Diner/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%231%20-%20Danny's%20Diner/SQL%20Server%20Implementation)
- **Objective**: Analyze customer behavior to provide insights for increasing loyalty and sales.
- **Key Focus**: Customer segmentation, purchasing patterns, and loyalty metrics.

### 2. Case Study #2: Pizza Runner

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%232%20-%20Pizza%20Runner/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%232%20-%20Pizza%20Runner/SQL%20Server%20Implementation)
- **Objective**: Optimize pizza delivery operations by analyzing order and runner performance.
- **Key Focus**: Delivery times, cancellation rates, and operational efficiencies.

### 3. Case Study #3: Foodie-Fi

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%233%20-%20Foodie-Fi/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%233%20-%20Foodie-Fi/SQL%20Server%20Implementation)
- **Objective**: Understand subscription behavior and churn rates for a food subscription service.
- **Key Focus**: Customer retention, plan changes, and revenue trends.

### 4. Case Study #4: Data Bank

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%234%20-%20Data%20Bank/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%234%20-%20Data%20Bank/SQL%20Server%20Implementation)
- **Objective**: Analyze financial transaction data to provide insights into customer spending habits.
- **Key Focus**: Fraud detection, spending categorization, and account activity.

### 5. Case Study #5: Data Mart

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%235%20-%20Data%20Mart/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%235%20-%20Data%20Mart/SQL%20Server%20Implementation)
- **Objective**: Evaluate sales performance and inventory management for a retail business.
- **Key Focus**: Sales trends, product popularity, and seasonal performance.

### 6. Case Study #6: Clique Bait

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%236%20-%20Clique%20Bait/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%236%20-%20Clique%20Bait/SQL%20Server%20Implementation)
| [ER Diagram](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%236%20-%20Clique%20Bait/Enterprise%20Relationship%20Diagram)
- **Objective**: Assess the performance of an online ad platform and provide recommendations to improve engagement.
- **Key Focus**: Click-through rates, campaign effectiveness, and user behavior.

### 7. Case Study #7: Balanced Tree Energy Co.

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%237%20-%20Balanced%20Tree/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%237%20-%20Balanced%20Tree/SQL%20Server%20Implementation)
- **Objective**: Monitor energy usage and suggest energy-saving measures.
- **Key Focus**: Usage patterns, cost optimization, and environmental impact.

### 8. Case Study #8: Fresh Segments

Solutions: [PostgreSQL Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%238%20-%20Fresh%20Segments/PostgreSQL%20Implementation) | [SQL Server Implementation](https://github.com/itsmeyogesh22/Solved-8-Weeks-SQL-Challenge-Correct-Solutions/tree/f5efe504d0545cd4eaa72b53382e7b0ac797c9ca/Case%20Study%20%238%20-%20Fresh%20Segments/SQL%20Server%20Implementation)
- **Objective**: Segment customers for a grocery delivery service and personalize marketing efforts.
- **Key Focus**: Customer segmentation, basket analysis, and purchasing trends.