Skip to content

A comprehensive E-Commerce Database Management System project developed with Oracle SQL for DBMS course. Includes ER diagrams, normalization analysis, and reporting queries.

License

Notifications You must be signed in to change notification settings

Toxpox/eCommerce-DBMS-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

eCommerce DBMS Project

Database Management Systems Project

This project is a comprehensive E-Commerce Database Management System designed to manage user information, product inventory, orders, payments, and shipping details. It is developed using Oracle SQL, adhering to data integrity principles, normalization standards, and relational database concepts (RDBMS).

πŸ“– Project Overview & Purpose

The primary objective of this project is to model a structured and efficient system for an e-commerce platform. The system supports the following core functions:

  • User registration and account management.
  • Product management with a hierarchical category structure.
  • Order placement and status tracking (Processing -> Shipped -> Delivered).
  • Payment processing and financial record keeping.

πŸ—οΈ Database Architecture (ER Diagram & Schema)

1. Conceptual Design (ER Diagram)

The high-level entity relationships and cardinalities. ER Diagram

2. Logical Design (Relational Model)

The mapping of entities to relational tables (7-Step Mapping). Relational Model

3. Physical Schema

The actual database implementation view showing data types and constraints. Database Schema

The database is built upon 7 main entities:

  1. USERS: Stores customer and admin information.
  2. ADDRESSES: Manages user shipping/billing addresses (1:N relationship).
  3. PRODUCTS: Contains inventory, pricing, and product details.
  4. CATEGORIES: Classifies products using a self-referencing hierarchical structure (Subcategories).
  5. ORDERS: Stores order headers and total amounts.
  6. ORDER_DETAILS: Links products to orders, preserving historical price data (SalePrice).
  7. PAYMENTS: Records payment transactions for orders (1:1 relationship).

πŸ“Š Normalization Analysis

The database design has been optimized for performance and data integrity:

  • 1NF (First Normal Form): All tables contain atomic values, and there are no repeating groups.
  • 2NF (Second Normal Form): All tables have single-column primary keys, eliminating partial dependencies.
  • 3NF (Third Normal Form): Most tables are fully compatible. The ADDRESSES table is intentionally denormalized (keeping City/District together) for ease of use, while all other entities strictly follow 3NF.

πŸš€ Key SQL Scenarios

The project includes advanced SQL queries for reporting and analysis:

  • Best-Selling Products: Lists the top 5 products based on total quantity sold.
  • Customer Analysis: Retrieves the order history and total spending of a specific user.
  • Financial Control: Identifies orders with incomplete or failed payments.
  • Time-Based Reporting: Lists all orders created in a specific period (e.g., May 2025).

This project has been tested and implemented on Oracle Live SQL.

About

A comprehensive E-Commerce Database Management System project developed with Oracle SQL for DBMS course. Includes ER diagrams, normalization analysis, and reporting queries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages