Programming Assignment Unit 5
Programming Assignment Unit 5
CS 2203-01 - Databases 1
Lutalo Martin
author integration
Introduction
The task of the assignment is to enhance the previous library management system by
creating a new entity, populating the database with relevant sample data, and using SQL
to perform management and retrieval of details. The key purpose is to develop a greater
Nationality VARCHAR(50),
BirthYear INT
);
-- Insert authors
INSERT INTO Authors VALUES
b) SQL Operations
SELECT Members.Name
FROM Members
-- TABLE CREATION
Nationality VARCHAR(50),
BirthYear INT
);
Genre VARCHAR(50),
);
CREATE TABLE Members (
Phone VARCHAR(15)
);
ReturnDate DATE,
CASCADE,
);
-- DATA INSERTION
-- REQUIRED QUERIES
-- a) Retrieve all books written by a specific author
SELECT Members.Name
FROM Members
Conclusion
The activities completed in this assignment provided practical experience with extending
a relational schema, writing accurate SQL commands to retrieve and modify data, and
improving the organization of data. By adding an Authors table and changing some
aspects of Members, I was able to apply normalization and other schema evolution
techniques. I could comfortably use JOIN operations, showing the advantages of the
relational model to bring together data from several tables. I used constraints and defaults
to maintain consistency. In the future I would consider doing some more normalization,
https://www.geeksforgeeks.org/sql-concepts-and-queries/
GURU99. https://www.guru99.com/alter-drop-rename.html
Yadav, A. (2022, February 28). Create, Insert, Update, Delete, Select, Truncate, Drop
https://www.c-sharpcorner.com/article/create-insert-update-delete-select-truncate-
drop-statement-in-oracle-pl-sq/
Vidhya, V., Jeyaram, G., & Ishwarya, K. (2016). Database Management Systems. Alpha
Science International.
Codecademy. (2025, February 26). SQL Commands list: Basic database queries.
https://www.codecademy.com/article/sql-commands