This project presents the design and implementation of a relational database system for an online supermarket platform, modeled after real-world systems such as Carrefour Egypt. The system is intended to manage product inventories, handle customer data, and support online purchasing processes.
The primary objectives of this project are to:
- Design a comprehensive Entity Relationship Diagram (ERD) that captures all necessary entities and their relationships.
- Convert the ERD into a physical database schema using Data Definition Language (DDL) scripts.
- Provide structured queries that address typical business inquiries relevant to supermarket operations.
- Register new customers (by administrator or customer)
- Update customer information (by administrator or customer)
- Remove customer accounts (by administrator or customer)
- Add new products
- Update product details
- Remove products from the inventory
- Browse available products (by administrator or customers)
- Display a list of all available products
- Identify products requiring restocking (based on quantity threshold)
- Generate a list of frequent customers eligible for discount vouchers
A detailed ERD is included to model the necessary entities such as Customers, Products, Orders, and their relationships.
The database schema is created using SQL DDL statements, defining tables, constraints, and data types.
- Most frequently purchased product
- Products not purchased during a specific month
- Customers with no purchases in the past year
- Customer with the highest purchase volume this month
- Sales comparison between electric appliances and food products
- Product information along with number of unique buyers
- Database Management System: MS SQL Server
- Design Tools: dbdiagram.io, MySQL Workbench, or pgAdmin (for ERD and schema visualization)
- Languages: SQL (DDL and DML)
Contributions are welcome! Feel free to fork the repo and submit a pull request.
- Mariam Badr Yehia: GitHub - LinkedIn
- George Malak Magdy: GitHub - LinkedIn
- John Ayman Demian: GitHub - LinkedIn
- Mohammed Atef Abd El-Kader: GitHub - LinkedIn
- Marawan Mohammed Badr: GitHub - LinkedIn
This project is licensed under the MPL License.
