Professional Documents
Culture Documents
Database Systems (SET11101) : Tasks
Database Systems (SET11101) : Tasks
Tasks:
(B) create a corresponding relational scheme for your diagram, and verify it meets first, second and
third normal forms, then
(C) design test data that will let you run and test the listed queries
Table of Contents
Entity Relationship Diagram..........................................................................................2
Assumptions...........................................................................................................2
Relational Scheme..........................................................................................................3
Test Data........................................................................................................................3
TASK A: Entity-Relationship Diagram (ERD)
Assumptions made
Each book has multiple copies, and copies have a one-to-many relationship with books.
Members can borrow multiple copies, but they can only have one reservation per copy.
1 On Loan 1
2 On Loan 1
3 On Loan 2
4 On Loan 2
5 On Loan 3
6 On Loan 3
7 On Loan 4
8 On Loan 4
9 On Loan 5
10 On Loan 5
1 Peters peters@gmail.com
2 Andrew andrew@gmail.com
3 Peters peters@gmail.com
4 Simon simon@gmail.com
5 Peters peters@gmail.com
6 Sohail sohail@gmail.com
7 Peters peters@gmail.com
8 Bilal bilal@gmail.com
9 John john@gmail.com
10 Irfan irfan@gmail.com
1 2022-03-01 2022-03-31 1 1
2 2022-03-01 2022-03-10 3 1
3 2022-03-01 2022-03-31 5 1
4 2022-03-01 2022-03-16 7 1
5 2022-03-01 2022-03-31 9 1
6 2023-07-05 2023-07-12 2 2
7 2022-03-01 2022-03-27 4 3
8 2023-04-01 2023-04-31 6 4
9 2023-08-01 2023-08-31 8 5
10 2023-09-01 2023-10-01 10 6
1 10 1
2 8 1
3 4 2
4 5 3
5 7 4
1 16.00 0 1
2 3.00 1 3
3 5.00 1 4
4 5.00 0 5
5 5.00 1 6