Hello i'm a student doing a course in database where oracle is the RDBMS being used. I have a problem figuring out how to implement a section of my EERD that i'm hoping to get some insight in. I have attached the diagram below.
The case is for a blood bank. There are 2 suppliers to the blood bank:
- Donors who give blood(identified by id)
- Other blood banks in the area (identified by id)
I want to be able to track who supplied a particular parcel of blood in the inventory. As i try to assess it its leading to a field in the inventory table referencing 2 fields in 2 different tables which i don't think is possible unless its an advance concept that i haven't learned.
Assumptions I used for creating the EERD
- A donor my donate multiple parcels of blood
- Blood of varying types may be supplied by external blood banks in case of shortages
- Customers (Health Centers) request blood which is taken from inventory and recorded as a transaction
- Transactions can only reflect one customer
- A customer may perform multiple transactions
- A parcel of blood can only be reflected on one transaction
- A transaction will only reflect one parcel of blood
- In order to distinguish between occasional and regular donors a history of donations must be maintained to determine the frequency of donations