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

Database Planning Course Work

Uploaded by

blessedpaddy270
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 views7 pages

Database Planning Course Work

Uploaded by

blessedpaddy270
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

TDIT 123: DATABASE PLANNING AND

MANAGEMENT 1

COURSE WORK 2

COURSE WORK 2

BY BWAMIKI ELISHA
NAME OF STUDENT: ANYANGO MIDDY
REG NO : UBB067

BY BWAMIKI ELISHA

NAME OF STUDENT: ANYANGO MIDDY


REG NO /2023/JJ/A/T/D/054
: UBB067
TDIT 123: Database Planning and Management I
TDIT 123: Database Planning and Management I
Course Work
The assignment due date is February 2024
A local library system is looking to upgrade its manual record-keeping system to a
digital
database management system. The library has a diverse collection of materials,
including
books, magazines, DVDs, and e-books. Members of the library can borrow these
materials
using their library card. The library wants to keep track of the materials borrowed
by each
member, the due dates for returned items, and any fines incurred for late returns.
Additionally, the library wishes to maintain records of authors and publishers for
books and
magazines in their collection.
Instructions:
Read the scenario carefully. Based on the information provided, answer the
following
questions:
1. Identify the Entities:
List all the entities that would be required to model the library's database
system.

2. Define Attributes for Each Entity:


For each entity identified, list the attributes that would be necessary to store
information relevant to the library's system.

3. Determine Relationships:
Describe the relationships between the entities identified. Specify the type of
relationship (one-to-one, one-to-many, many-to-many) and justify your
answer based on the scenario.

ANSWERS:
Library Database Modeling

1. Entities:
 Member:

Represents individuals who have a library membership.

 Material:

Represents the physical or digital items available for borrowing. For example:
Books, Magazines, E-books.

 Copy:

Represents individual copies of a material e.g., different copies of the same book.

 Loan:

Represents an instance of a material being borrowed by a member.

 Author:

Represents individuals who write books or articles in magazines.


 Publisher:

Represents organizations that publish books or magazines.

2. Attributes:
 Member:

Member ID (primary key), Name, Address, Contact Information, Membership


Type, Registration Date.

 Material:

Material ID (primary key), Title, Author(s), Publisher, Publication Date, Type


(Book, Magazine, DVD, E-book), Description, Availability Status.

 Copy:

Copy ID (primary key), Material ID (foreign key), Loan History.

 Loan:

Loan ID (primary key), Member ID (foreign key), Copy ID (foreign key), Loan
Date, Due Date, Return Date, Late Fee (if any).

 Author:

Author ID (primary key), Name, Nationality, Biography (optional).

 Publisher:

Publisher ID (primary key), Name, Location, Contact Information.

3. Relationships:
 Member - Loan:

One-to-Many relationship: One member can have many loans, but each loan is
associated with only one member.
 Material - Copy:

One-to-Many relationship: One material can have many copies, but each copy
belongs to only one material.

 Copy - Loan:

One-to-Many: One copy can be involved in many loans, but each loan involves
only one copy.

 Material - Author:

Many-to-Many relationship: One material can have multiple authors, and one
author can contribute to multiple materials (books or articles).

 Material - Publisher:

One-to-One relationship: One material is published by only one publisher, and


each publisher publishes multiple materials.

You might also like