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

https://github.com/anthonylucky1909/retaildb

Online retail application databases are some of the most well-known SQL practice projects as the importance of e-commerce continues to grow.
https://github.com/anthonylucky1909/retaildb

database-management sql

Last synced: 9 months ago
JSON representation

Online retail application databases are some of the most well-known SQL practice projects as the importance of e-commerce continues to grow.

Awesome Lists containing this project

README

          

# 🚀 Database Fundamentals: A Deep Dive into SQL

[![License](https://img.shields.io/github/license/anthonylucky1909/DatabaseFundamentals.svg)](LICENSE)
[![MySQL](https://img.shields.io/badge/MySQL-8.0.23-blue?logo=mysql&logoColor=white)](https://www.mysql.com/)
[![VS Code](https://img.shields.io/badge/Editor-VS%20Code-0078d7?logo=visualstudiocode)](https://code.visualstudio.com/)
[![OS](https://img.shields.io/badge/OS-Ubuntu%2020.04%20LTS-orange?logo=ubuntu)](https://ubuntu.com/)

---

## 🎯 Environment

- **SQL Version**: MySQL 8.0.23 🗃️
- **Tools**: VS Code, MySQL Workbench 💻
- **OS**: Ubuntu 20.04 LTS 🐧

---

## 🧑‍💻 Highlights

- **Stored Procedures**: Query customer orders, check employee seniority
- **Functions**: Calculate avg. order price, total product sales
- **Constraints & Triggers**: Limit product price, auto-update employee salary
- **Queries**: Top-paid employees, add/remove customers
- **Dynamic SQL**: Adjust salaries + query customer info in one go

---

## 📊 Database Schema

![Database Schema](scheme.png)

---

## ⚡ Key Challenges & Solutions

- **Complex Joins** → Optimized with indexing strategies
- **Data Integrity Rules** → Enforced using triggers & constraints
- **Slow Queries** → Improved via indexing + query design

---

## 📚 References

- [MySQL Docs](https://dev.mysql.com/doc/)
- MIT OpenCourseWare – Database Systems 📖
- Stack Overflow – query optimization 💬

---

✨ Thanks for checking out this project! 🚀