Skip to content

A collection of SQL projects focused on sales analysis using a pizza dataset. Includes queries and corresponding output files for data insights

Notifications You must be signed in to change notification settings

sakshisree/sql-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 

Repository files navigation


๐Ÿ•PIZZA SALES ANALYSIS USING MYSQL

This project showcases a set of SQL queries used to analyze sales data set from a fictional pizza reasturant.The goal is to extract insights such as revenue trends, best-selling pizzas, average pizzas ordered per day and more using mysql.


๐Ÿ“Project Structure

๐Ÿš€ How to Run This SQL project

Follow these steps to run and explore the project using MYSQL:


๐Ÿ“ 1. Clone the repository

  git clone
  https://github.com/sakshisree/sql-projects.git
  cd sql-projects

๐Ÿ—ƒ๏ธ 2. Set up the Database in MYSQL

1. Open MYSQL WORKBENCH or any MYSQL clients.

2. Create the table structures manually before importing the CSV files:

๐Ÿงฑ Table Structure Setup

Before importing large CSV files, run the table definitions from:

๐Ÿ“„ table_definitions.sql

This will create all required tables in the pizza_sales database.

3.Import the CSV files found inside the data_sets/ folder:

  • order_details.csv
  • orders.csv
  • pizza_types.csv
  • pizzas.csv

You can import them using:

  • MySQL Workbench > Table Data Import Wizard

๐Ÿ“‚ 3. Run the SQL Queries

๐Ÿ“‚Inside the queries/ folder, open and run each .sql file in order

  • Start with 01a-query-total_orders.sql
  • Then move to 02a-query-Total_revenue.sql, and so on...

๐Ÿ“ŠEach query solves a specific business question.:

  • Total orders
  • Revenue analysis
  • Top-selling pizzas
  • Pizzas per day/hour
  • Size/category breakdown

๐Ÿ“„ 4. Check the Outputs

Each query folder contains:

  • .sql file (the query)
  • .md file (sample output for reference) โœ…You can compare your output with the sample provided.

Note: This is a mock dataset used for learning and demonstration.


๐Ÿ’ก Key Learnings

  • Writing optimized SQL queries using GROUP BY, ORDER BY, LIMIT, and DATE functions.
  • Drawing real business insights from structured data.
  • Organizing code and documentation for data analytics projects.

โš™๏ธ Tech Stack

  • MySQL
  • SQL Workbench
  • CSV Files for data input
  • Git & GitHub for version control

๐Ÿ™‹โ€โ™€๏ธ About Me

Hi, Iโ€™m Sakshi Sree a BCA student passionate about Data Analytics. I love solving business problems using SQL and Python.

๐Ÿ“ฌ Contact

Reach out to me at :sakshisree24680@gmail.com

About

A collection of SQL projects focused on sales analysis using a pizza dataset. Includes queries and corresponding output files for data insights

Topics

Resources

Stars

Watchers

Forks