Skip to content

Analyze sales data from a scale model car business to uncover insights on customer behavior and product performance using SQL and Jupyter Notebook.

Notifications You must be signed in to change notification settings

xjwllmsx/model-car-sales-sql

Customer and Product Insights for Model Car Sales

In this project, I take on the role of a data analyst for a company that sells scale model cars. By analyzing historical sales data, I aim to extract insights that support better business decisions. The focus is on identifying product performance, understanding customer behavior, and informing strategies around inventory, marketing, and customer acquisition.

The ultimate goal is to help the company make smarter, data-informed decisions to improve efficiency, target the right customers, and boost sales.

Tech Stack

     

Contents

Project Structure

model-car-sales-sql/
├── notebook/            # Contains the Jupyter Notebook with all analysis and insights
├── project-files/       # Directory for SQLite database, database schema image, and SQL queries
├── .gitignore           # Lists ignored files for version control
├── requirements.txt     # Python package requirements (generated from pyproject.toml)
├── pyproject.toml       # Dependency and project metadata configuration
├── .python-version      # Defines Python version for virtual environments
├── uv.lock              # Dependency lock file for consistent installs
└── README.md            # Project overview and setup instructions

Database

The analysis uses a sample SQLite database (stores.db) that contains sales records from a fictional scale model car business. It includes tables for customers, products, orders, and more.

You can view the database schema image for reference.

View it Online

You can explore the full notebook directly in your browser using Binder:

Launch in Binder

Steps to Run

To run the notebook locally:

1. Clone the repository

git clone https://github.com/xjwllmsx/model-car-sales-sql.git
cd model-car-sales-sql

2. Create and activate a virtual environment

uv venv
uv pip install -r requirements.txt

3. Launch Jupyter Notebook

jupyter notebook notebook/model-car-sales.ipynb

NOTE: If you're using uv, dependencies are managed via pyproject.toml instead of requirements.txt.

License

This project is for educational purposes only. The database used is fictional and intended for practicing data analysis and SQL.

About

Analyze sales data from a scale model car business to uncover insights on customer behavior and product performance using SQL and Jupyter Notebook.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  
  •  
  •