diff --git a/FUNDING.yml b/FUNDING.yml deleted file mode 100644 index 21f675b..0000000 --- a/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: DataWithBaraa -custom: ["https://paypal.me/baraasalkini"] diff --git a/README.md b/README.md index dee144d..14e66a5 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,70 @@ -# sql-data-analytics-project -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. +# πŸ“Š SQL Data Analytics Project + +A **comprehensive SQL Exploratory Data Analysis (EDA) project** that demonstrates how to explore, analyze, and derive insights from relational databases. +This project is designed for **data analysts, BI professionals, and learners** who want hands-on SQL practice. + +The repository contains structured SQL scripts that cover: +- πŸ” Database exploration +- πŸ“‘ Dimensions & attributes analysis +- πŸ“† Date/time-based exploration +- πŸ“ˆ Measures & metrics calculations +- βš–οΈ Magnitude comparisons across categories +- πŸ† Ranking & performance analysis + +--- + +## 🎯 Project Overview + +This project is inspired by practical SQL workflows where data exploration leads to **actionable insights**. + +It demonstrates three main types of SQL analytics projects: +1. πŸ—οΈ **Data Warehousing** – Structuring and organizing raw data. +2. πŸ”Ž **Exploratory Data Analysis (EDA)** – Asking questions and uncovering patterns. *(Focus of this repo)* +3. πŸ“Š **Advanced Analytics** – Business-driven queries (trends, comparisons, segmentation, reports). --- -## β˜• Stay Connected +## πŸ—‚οΈ Dataset & Setup + +To run this project, you can set up the database in **SQL Server** in three ways: +1. ⚑ **Executing Scripts** – Run `init_database.sql` to create schema & tables. +2. πŸ“‚ **Importing CSVs** – Use SQL Server’s *Import Flat File* wizard. +3. πŸ’Ύ **Restoring Backup** – Use the provided `.bak` file to restore the database. + +Tables used: +- πŸ‘€ `DimCustomer` (customer details, demographics, location) +- πŸ“¦ `DimProduct` (product details, categories, cost) +- πŸ›’ `FactSales` (sales transactions, quantities, revenue, dates) -Let's stay in touch! Feel free to connect with me on the following platforms: +--- -[![YouTube](https://img.shields.io/badge/YouTube-red?style=for-the-badge&logo=youtube&logoColor=white)](http://bit.ly/3GiCVUE) -[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://linkedin.com/in/baraa-khatib-salkini) -[![Website](https://img.shields.io/badge/Website-000000?style=for-the-badge&logo=google-chrome&logoColor=white)](https://www.datawithbaraa.com) -[![Newsletter](https://img.shields.io/badge/Newsletter-FF5722?style=for-the-badge&logo=substack&logoColor=white)](https://bit.ly/BaraaNewsletter) -[![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/baraasalkini) -[![Join](https://img.shields.io/badge/Join-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/@datawithbaraa) +## 🧠 Core Concept: Dimensions & Measures -All Courses and their materials are completely free, and all I ask is your support through subscribing, liking, and commenting on my channel. Your engagement means the world to me and It help the channel! -- βœ… **SQL Full Course:** [Course Link](https://youtu.be/SSKVgrwhzus) | [Download Materials](https://www.datawithbaraa.com/sql-introduction/sql-ultimate-course/) | [GIT Repo](https://github.com/DataWithBaraa/sql-ultimate-course) -- βœ… **Tableau Full Course:** [Course Link](https://www.youtube.com/watch?v=K3pXnbniUcM) | [Download Materials](https://www.datawithbaraa.com/tableau/tableau-thank-you/) | [Public](https://public.tableau.com/app/profile/baraa.salkini/vizzes) +Understanding the dataset is easier if you separate fields into **Dimensions vs Measures**: +- 🧩 **Dimensions** β†’ Descriptive attributes (Country, Category, Product, Dates, Gender). +- πŸ”’ **Measures** β†’ Numeric values that can be aggregated (Sales Amount, Quantity, Cost, Age). -- βœ… **SQL Data Warehouse Project:** [Course Link](https://youtu.be/SSKVgrwhzus) | [Download Materials](https://www.datawithbaraa.com/sql-introduction/advanced-sql-project/) | [GIT Repo](https://github.com/DataWithBaraa/sql-data-warehouse-project) -- βœ… **SQL Exploratory Data Analysis Project:** [Course Link](https://youtu.be/SSKVgrwhzus) | [Download Materials](https://www.datawithbaraa.com/sql-introduction/advanced-sql-analytics-project/) | [GIT Repo](https://github.com/DataWithBaraa/sql-data-analytics-project) -- βœ… **SQL Advanced Data Analysis Project:** [Course Link](https://youtu.be/SSKVgrwhzus) | [Download Materials](https://www.datawithbaraa.com/sql-introduction/advanced-sql-analytics-project/) | [GIT Repo](https://github.com/DataWithBaraa/sql-data-analytics-project) - -- βœ… **Tableau Sales Project:** [Course Link](https://www.youtube.com/watch?v=dahrmqT5GD4) | [Download Materials](https://datawithbaraa.substack.com/p/access-to-course-materials) | [Public](https://public.tableau.com/app/profile/baraa.salkini/vizzes) -- βœ… **Tableau HR Project:** [Course Link](https://www.youtube.com/watch?v=UcGF09Awm4Y) | [Download Materials](https://datawithbaraa.substack.com/p/access-to-course-materials) | [Public](https://public.tableau.com/app/profile/baraa.salkini/vizzes) -- βœ… **ChatGPT:** [Course Link](https://www.youtube.com/watch?v=LJLNfei4i-c) | [Download Materials](https://datawithbaraa.substack.com/p/access-to-course-materials) +This classification is the foundation of almost every analytical query. --- -## πŸ›‘οΈ License +## πŸ›£οΈ Project Roadmap + +The project follows **six structured steps** for analysis: -This project is licensed under the [MIT License](LICENSE). You are free to use, modify, and share this project with proper attribution. +1. πŸ” **Database Exploration** β†’ Inspect tables, columns, metadata. +2. 🧩 **Dimensions Exploration** β†’ Explore unique values (countries, categories, products). +3. πŸ“† **Date Exploration** β†’ Identify time ranges (first/last orders, customer age). +4. πŸ“Š **Measures Exploration** β†’ Aggregate metrics (sales, quantities, averages). +5. βš–οΈ **Magnitude Analysis** β†’ Compare measures across dimensions (sales by category, revenue by country). +6. πŸ† **Ranking Analysis** β†’ Identify top/bottom performers (best products, loyal customers, worst sellers). -## 🌟 About Me +--- -Hi there! I'm **Baraa Khatib Salkini**, also known as **Data With Baraa**. I’m an IT professional and passionate YouTuber on a mission to share knowledge and make working with data enjoyable and engaging! +## πŸ“ Example Queries -Let's stay in touch! Feel free to connect with me on the following platforms: +Here are some representative queries from the project: -[![YouTube](https://img.shields.io/badge/YouTube-red?style=for-the-badge&logo=youtube&logoColor=white)](http://bit.ly/3GiCVUE) -[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://linkedin.com/in/baraa-khatib-salkini) -[![Website](https://img.shields.io/badge/Website-000000?style=for-the-badge&logo=google-chrome&logoColor=white)](https://www.datawithbaraa.com) -[![Newsletter](https://img.shields.io/badge/Newsletter-FF5722?style=for-the-badge&logo=substack&logoColor=white)](https://bit.ly/BaraaNewsletter) -[![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/baraasalkini) -[![Join](https://img.shields.io/badge/Join-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/@datawithbaraa) +- πŸ“‘ **List all tables in the database** +```sql +SELECT * FROM information_schema.tables; diff --git a/docs/Project Roadmap.pdf b/docs/Project Roadmap.pdf deleted file mode 100644 index 7256b68..0000000 Binary files a/docs/Project Roadmap.pdf and /dev/null differ diff --git a/docs/Project Roadmap.png b/docs/Project Roadmap.png deleted file mode 100644 index 5cb8c52..0000000 Binary files a/docs/Project Roadmap.png and /dev/null differ diff --git a/docs/Project_Notes_Sketches.pdf b/docs/Project_Notes_Sketches.pdf deleted file mode 100644 index dea2900..0000000 Binary files a/docs/Project_Notes_Sketches.pdf and /dev/null differ