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

Database Design and Operations

This document outlines the design and management of a Library Management System database in Microsoft Access, featuring tables for Books, Members, and Transactions. It details operations such as inserting, updating, retrieving, and deleting data, including specific SQL queries for each operation. The document provides examples of data entries and the structure of the database tables.

Uploaded by

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

Database Design and Operations

This document outlines the design and management of a Library Management System database in Microsoft Access, featuring tables for Books, Members, and Transactions. It details operations such as inserting, updating, retrieving, and deleting data, including specific SQL queries for each operation. The document provides examples of data entries and the structure of the database tables.

Uploaded by

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

Database Design and Operations in MS Access

Introduction
This document demonstrates the design and management of a Library Management System
database using Microsoft Access. The database includes tables for Books, Members, and
Transactions. Various operations like inserting, updating, retrieving, and deleting data are
performed.

Database Design

Books Table
BookID Title Author Genre PublishedYe CopiesAvaila
ar ble

1 The Great F. Scott Fiction 1925 5


Gatsby Fitzgerald

2 To Kill a Harper Lee Fiction 1960 3


Mockingbird

3 1984 George Dystopian 1949 3


Orwell

Members Table
MemberID FirstName LastName Email Phone JoinDate

2 Fatima Ahmed fatima.ahme 987-654- 2025-01-05


d@example. 3210
com

3 Rabi'atu Abdullahi rabiatu.abdu 555-333- 2025-01-07


llahi@exam 2222
ple.com

Transactions Table
TransactionI BookID MemberID BorrowDate ReturnDate Status
D

2 2 2 2025-01-07 2025-01-09 Returned

3 3 3 2025-01-08 None Borrowed


Operations Performed

1. Insert Data
Inserted a new member record for Rabi'atu Abdullahi into the Members table:
SQL Query:

INSERT INTO Members (FirstName, LastName, Email, Phone, JoinDate)


VALUES ('Rabi'atu', 'Abdullahi', '[email protected]', '555-333-2222', '2025-
01-07');

2. Update Data
Updated the CopiesAvailable for BookID 3 after Rabi'atu borrowed the book:
SQL Query:

UPDATE Books
SET CopiesAvailable = CopiesAvailable - 1
WHERE BookID = 3;

3. Retrieve Data
Retrieved transaction history for Rabi'atu Abdullahi:
SQL Query:

SELECT * FROM Transactions WHERE MemberID = 3;

4. Delete Data
Deleted John Doe from the Members table:
SQL Query:

DELETE FROM Members WHERE MemberID = 1;

You might also like