Small to Medium E-commerce businesses often face "Data Anomalies" due to poor database design, leading to:
- Overselling: Selling products that are out of stock.
- Orphaned Records: Deleting a user but leaving their orders in the system.
- Lack of Insight: Inability to track "Customer Lifetime Value" or "Churn Risk."
- Build a robust Relational Database Management System (RDBMS).
- Implement ACID Transactions to ensure financial safety.
- Automate inventory management using Database Triggers.
- Visualize sales performance using a Python Dashboard.
- ER Modeling: Designed a schema with Users, Products, Categories, Orders, and Order Items.
- Normalization: Achieved 3rd Normal Form (3NF) to reduce data redundancy.
- Constraints: Applied
UNIQUE,NOT NULL, andCHECKconstraints for data validity.
- Automated Trigger: Created
after_order_item_inserttrigger to automatically decrement stock levels. - Safe Transactions: Wrote a Stored Procedure
place_orderusingCOMMITandROLLBACKto handle payment failures. - Complex Queries: Developed 20 business queries covering Revenue, Customer Segmentation, and Inventory Analysis.
- Synthetic Data: Used Python (
Faker) to generate 1,000+ realistic records. - Pipeline: Built a Python-to-MySQL connection pipeline for automated data insertion.
- KPI Dashboard: Built a Jupyter Notebook to visualize Monthly Revenue and Category Performance.
- Customer Analysis: Identified VIP customers and Churn risks using SQL Aggregation.
- Technical Report: Documented the system architecture and performance results in a professional report.