Skip to content

About

This repository contains a collection of SQL scripts demonstrating various analytical techniques, such as changes over time, cumulative, performance, data segmentation, part-to-whole analysis.

Topics

Resources

Stars

293 stars

Watchers

4 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Data Analytics Project

YouTube Udemy Website License Stars

The materials of the data analytics project: the data, every query from the videos, and the project roadmap.

You explore a sales database step by step, then go deeper with trends, segments and two full reports.

New here? Open the setup guide in the 00_setup folder. It walks you through installing SQL Server and creating the database, on Windows and Mac, with the fixes for the common errors.

sql-data-analytics-project/
├── 00_setup/                        the setup guide, and the one-click Docker start for Mac
├── 01_datasets/                     the data, as a backup and as CSV files
│   ├── DataWarehouseAnalytics.bak   the database, ready to restore
│   └── csv-files/                   the same data, to build the database yourself
├── 02_docs/                         the project roadmap and notes
└── 03_scripts/                      the queries, in the order of the videos
    └── 00_init_database.sql         builds the database from the CSV files

Get the database in one of two ways:

  • Restore 01_datasets/DataWarehouseAnalytics.bak in SSMS. It needs SQL Server 2022 or newer.
  • Or run 03_scripts/00_init_database.sql. It builds the database from the CSV files in C:\sql\sql-data-analytics-project\01_datasets\csv-files\.

The videos show the folders without numbers: datasets there is 01_datasets here, scripts is 03_scripts.


🗺️ What you build

The project roadmap

The project has two parts, and the scripts follow them:

  • Exploratory data analysis, scripts 01 to 06: you get to know the data, from the tables and dates to the big numbers and the top performers.
  • Advanced analytics, scripts 07 to 13: you go deeper with trends, running totals, performance, part-to-whole and segments. Two reports close the project, one for customers and one for products.

🎓 Learn with me

Watch on YouTube, or take the guided version with a certificate on my Academy or Udemy.

Course YouTube My Academy Udemy
SQL Full course · Playlist Full Package · Handbook SQL Bootcamp · SQL for Analytics
Python Full course · Playlist Full Package · Handbook Python Bootcamp
Tableau Full course · Playlist Full Package Tableau Course · Chart Masterclass
Power BI Full course
Databricks Full course

Materials on my website: SQL · Python · Tableau · Power BI

The SQL projects

Project YouTube Materials Udemy
Data Warehouse Watch Repository Building a Modern Data Warehouse
Exploratory Data Analysis Watch this repository SQL for Exploratory Data Analysis
Advanced Data Analytics Watch this repository

More on YouTube: Data projects · Data careers

🤝 Connect

LinkedIn Discord Instagram TikTok Newsletter Notion Roadmaps

🛡️ License

MIT. Use it, change it, share it, with attribution.

🌟 About me

Hi, I'm Baraa Khatib Salkini. I spent years in enterprise data engineering and built one of the largest lakehouses at Mercedes-Benz. Today I teach data full-time at Data With Baraa: visually, step by step, from zero to hero.

About

This repository contains a collection of SQL scripts demonstrating various analytical techniques, such as changes over time, cumulative, performance, data segmentation, part-to-whole analysis.

Topics

Resources

Stars

293 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages