0% found this document useful (0 votes)
18 views9 pages

DBMS CASE STUDY - Removed

The document outlines the implementation of a relational database system (RDBMS) for an online retail store to enhance inventory management, order processing, and sales analytics. It details the challenges faced by the business, the design of the MySQL database, and the benefits of improved operational efficiency. Future recommendations include utilizing machine learning for sales predictions and integrating AI for customer support.

Uploaded by

mohamedt71106
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views9 pages

DBMS CASE STUDY - Removed

The document outlines the implementation of a relational database system (RDBMS) for an online retail store to enhance inventory management, order processing, and sales analytics. It details the challenges faced by the business, the design of the MySQL database, and the benefits of improved operational efficiency. Future recommendations include utilizing machine learning for sales predictions and integrating AI for customer support.

Uploaded by

mohamedt71106
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Introduction

1.1 Background

An online retail store specializes in selling products such as clothing,


accessories, and electronics to customers worldwide. As the business
grows, the company faces challenges in efficiently managing inventory,
processing customer orders, and analyzing sales data. To overcome
these challenges, the company has decided to implement a relational
database system (RDBMS) to streamline operations.

[Objective]

The primary objective of this case study is to design and implement a


relational database system that optimizes inventory management,
improves order processing efficiency, and enhances sales analytics.
Business Challenges
2.1 Inventory Management

●​ Difficulty in tracking stock levels in real-time.


●​ Inefficient restocking processes leading to overstocking or
stockouts.
●​ Manual errors in updating inventory records.

2.2 Customer Order Processing

●​ Delays in processing orders due to fragmented data.


●​ Challenges in managing order status updates.
●​ Lack of integration between different sales channels.

2.3 Sales Analytics

●​ Inconsistent reporting on sales performance.


●​ Limited insights into customer purchasing trends.
●​ Difficulty in identifying best-selling products.
Relational Database System Design
3.1 Database Selection

The company opts for MySQL as its RDBMS due to its scalability,
reliability, and strong support for e-commerce applications.

3.2 Entity-Relationship (ER) Model

The database consists of the following key entities:

●​ Customers: Stores customer details like name, email, and shipping


address.
●​ Products: Contains product information, including name, category,
price, and stock level.
●​ Orders: Records customer orders, including order date, status,
and total amount.
●​ Order Items: Links products to orders, specifying quantity and
price per item.
●​ Payments: Tracks payment transactions, including method, status,
and timestamp.
3.3 Database Schema

Customers Table

Column Data Type Constraints


Name

CustomerI INT PRIMARY KEY,


D AUTO_INCREMENT

Name VARCHAR(2 NOT NULL


55)

Email VARCHAR(2 UNIQUE, NOT NULL


55)

Address TEXT NOT NULL

Products Table

Column Data Type Constraints


Name

ProductID INT PRIMARY KEY,


AUTO_INCREMENT

Name VARCHAR(25 NOT NULL


5)

Category VARCHAR(10 NOT NULL


0)

Price DECIMAL(10, NOT NULL


2)

StockLevel INT NOT NULL


Orders Table

Column Data Type Constraints


Name

OrderID INT PRIMARY KEY, AUTO_INCREMENT

CustomerI INT FOREIGN KEY REFERENCES


D Customers(CustomerID)

OrderDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP

Status VARCHAR(5 NOT NULL


0)

TotalAmou DECIMAL(10, NOT NULL


nt 2)

Order Items Table

Column Data Type Constraints


Name

OrderItemI INT PRIMARY KEY, AUTO_INCREMENT


D

OrderID INT FOREIGN KEY REFERENCES


Orders(OrderID)

ProductID INT FOREIGN KEY REFERENCES


Products(ProductID)

Quantity INT NOT NULL

Price DECIMAL(10, NOT NULL


2)
Payments Table

Column Data Type Constraints


Name

PaymentID INT PRIMARY KEY, AUTO_INCREMENT

OrderID INT FOREIGN KEY REFERENCES


Orders(OrderID)

Method VARCHAR(10 NOT NULL


0)

Status VARCHAR(5 NOT NULL


0)

Timestam TIMESTAMP DEFAULT CURRENT_TIMESTAMP


p

Total Number of tables: 5

Name of each Table:


●​ Customers
●​ Products
●​ Orders
●​ Order Items
●​ Payments

RDBMS Used: MySQL


Implementation Strategy
4.1 Data Migration

●​ Export existing customer and product data from spreadsheets.


●​ Clean and transform data to fit the new relational database
structure.
●​ Import data into the MySQL database.

4.2 Application Integration

●​ Connect the database with the e-commerce platform (e.g.,


Shopify, WooCommerce).
●​ Develop an API to facilitate order processing and inventory
updates.

4.3 Performance Optimization

●​ Implement indexing on frequently queried columns.


●​ Optimize SQL queries to enhance speed and efficiency.
●​ Utilize caching mechanisms to reduce database load.
5. Benefits of the Relational Database System

5.1 Improved Inventory Management

●​ Real-time tracking of stock levels.


●​ Automated restocking alerts.
●​ Reduction in manual entry errors.

5.2 Streamlined Order Processing

●​ Faster order fulfillment through integrated workflows.


●​ Enhanced customer experience with real-time order tracking.
●​ Reduced order processing time.

5.3 Enhanced Sales Analytics

●​ Accurate sales reports and performance metrics.


●​ Better understanding of customer behavior and preferences.
●​ Data-driven decision-making for marketing and promotions.
Conclusion
By implementing a relational database system, the online retail store has
significantly improved its inventory management, order processing, and
sales analytics. The structured database design ensures data integrity,
scalability, and better operational efficiency. Moving forward, the
company can continue refining its database system to accommodate
business growth and evolving customer needs.

Future Recommendations
●​ Implement machine learning models to predict sales trends.
●​ Integrate AI-powered chatbots for customer support.
●​ Expand the database to support multi-currency transactions.

End of Case Study

You might also like