Relational database system for an online chocolate shop
Developing a system for handling inventory, customers, orders and customer/user authentication. All implemented with SQL utilizing techniques such as stored procedures wrapped in transactions. SQL queries flavored for MySQL.
- a. Database Schema Design
- b. Table relationships
- c. Feature Constraints
- a. Sample data used for database
- b. Queries to Ensure data consistency and referential integrity
- a. CRUD operations for managing chocolate, customers/users, and orders
- b. Allow users to add, update, and delete records from the database
- a. Example queries to retrieve information such as:
- i. Top-selling chocolate
- ii. Customers with the highest order amounts
- iii. Total revenue generated over a specific period
- iv. Chocolate with low inventory levels
- a. Transactions implemented to ensure atomicity and consistency during order processing
- b. Stored Procedures to answer specific business questions (e.g., identifying patterns in customer behavior)
- c. Query performance optimization
- d. Role-based access control to restrict access to sensitive data and operations
- Conclusions
- Next Steps
| Contributor | Github | ||
|---|---|---|---|
| Max | ImMaxRoss | max@maxross.com | maxim-ross |
.
├── data
│ └── data_sample.csv
├── static
│ ├── thank_you.jpg
├── LICENSE
├── README.md
└── sql_system_walkthrough.ipynb