Database Programming Assignment Unit 5
Database Programming Assignment Unit 5
CS 2203 – Databases
Term 1 - 2025
University of The People
October 8, 2024,
Library Database Management Assignment
In this assignment, we will extend the existing library database schema by adding an Authors table and
populating it with sample data. We will also perform various SQL operations as specified in the
assignment.
Sql code
Nationality VARCHAR(100),
BirthYear INT
);
Sql code
('978-0-7475-3274-2', 'Harry Potter and the Sorcerer\'s Stone', 'J.K. Rowling', 'Fantasy', 10),
Sql code
SELECT *
FROM Books
To find out which members have borrowed a specific book (e.g., "1984"):
Sql code
SELECT m.Name
FROM Members m
To add a new column called MembershipType to distinguish between different types of memberships:
Sql code
This assignment demonstrates how to create and manipulate a library database schema effectively while
performing various SQL operations to manage books, members, and loans.
References
1. Elmasri, R., & Navathe, S. B. (2015). Fundamentals of Database Systems (7th ed.). Pearson.
2. Harrington, J. L. (2016). Relational Database Design Clearly Explained (3rd ed.). Morgan
Kaufmann.