Database Project
Database Project
CSCI335
Fall:2024-2025
Introduction The Online Bookstore Management System is an innovative
solution designed to address the challenges of managing a modern
bookstore. This project combines database management principles with
practical functionality to create a robust and efficient system for both store
owners and customers. With the rise of digital platforms, bookstores face
increased pressure to provide seamless services, including inventory
management, customer relationship tracking, and real-time sales analysis.
Our project demonstrates the implementation of these features within a
relational database system, ensuring scalability, accuracy, and usability.
Overview
Functional Requirements
Entities Identified
Data Modeling
+------------+ +-------------+
| Payments | | OrderDetails|
+------------+ +-------------+
| PaymentID | |
| OrderID |
| PaymentDate|
| Amount |
| Method |
+------------+
Relational Model Mapping
Table Name Attributes Relationships
Normalization
Table Creation
CREATE TABLE Books (
BookID INT PRIMARY KEY,
Title VARCHAR(100),
Author VARCHAR(100),
Genre VARCHAR(50),
Price DECIMAL(10, 2),
StockQuantity INT,
SupplierID INT,
FOREIGN KEY (SupplierID) REFERENCES Suppliers(SupplierID)
);
Data Insertion
INSERT INTO Books (BookID, Title, Author, Genre, Price, StockQuantity,
SupplierID)
VALUES (1, 'The Great Gatsby', 'F. Scott Fitzgerald', 'Fiction', 10.99,
50, 1);
SQL Queries
Through this project, we demonstrated how a bookstore can effectively manage its
inventory, track customer interactions, and analyze sales performance. By focusing on
both functional and non-functional requirements, the system is built to be scalable,
secure, and user-friendly. Future enhancements, such as integrating advanced reporting
tools or expanding to e-commerce platforms, could further augment its capabilities. This
project not only meets its objectives but also lays the groundwork for future growth and
innovation in bookstore management systems.