Muhammad Najeeb - Database Systems (SET11101) - 25/11/2023
Muhammad Najeeb - Database Systems (SET11101) - 25/11/2023
(SET11101) | 25/11/2023
1
Table of Contents
Task D............................................................................................................................2
CREATE STATEMENTS.........................................................................................2
Task E.............................................................................................................................7
INSERT STATEMENTS...........................................................................................7
Task F...........................................................................................................................11
Query 1.....................................................................................................................11
Query 2.....................................................................................................................11
Query 3.....................................................................................................................12
Task G..........................................................................................................................12
2
Task D
CREATE STATEMENTS
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
COLLATE=utf8mb4_general_ci;
Task E
INSERT STATEMENTS
(301, 'Book C', 'Author A', 'ISBN-A-123', '2022-03-01', 'Fiction', 12, 7),
(701, 'Book G', 'Author A', 'ISBN-D-187', '2022-07-01', 'Mystery', 12, 16);
VALUES
`memberID`) VALUES
(401),
(402),
(403),
(404),
(405),
(406),
(407);
`BookCopyID`) VALUES
Task F
Query 1
Query 2
Query 3
Task G
The county library is a popular library managing several books in the present times
and the business is functioning with the help of proper business rules for ensuring that
effective data management would be done. The main constraints or business rules of the
system are:
5. Only one patron would be permitted for borrowing one book copy
6. One book copy could easily be borrowed by sole on member at any provided time
10. One book could have two primary status of “Available” or “On Loan”
12. The library staff could easily suspend the privileges of borrowing of any member
if the books are being returned significantly late frequently than permitted number
of times
From the above list of the business rules presented, the only business rule not
implemented in the present database is “One book could have several authors”. This
constraint could be implemented further by adding another table in the database containing
information of the book authors and containing detailed associated among the book and the
authors of the book. This would help in tracking the authors of the books significantly easily