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.
- Host: GitHub
- URL: https://github.com/anthonylucky1909/retaildb
- Owner: anthonylucky1909
- Created: 2023-04-11T00:45:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-08-20T14:53:36.000Z (10 months ago)
- Last Synced: 2025-08-20T16:40:59.142Z (10 months ago)
- Topics: database-management, sql
- Language: Python
- Homepage:
- Size: 1.82 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 Database Fundamentals: A Deep Dive into SQL
[](LICENSE)
[](https://www.mysql.com/)
[](https://code.visualstudio.com/)
[](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

---
## ⚡ 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! 🚀