a) Maya Media owner plans to build a Java program which uses an input file for storing the subscription records. Explain to Maya Media about the disadvantages of the traditional file system approach if the three branches need to share information. Clarify the advantages of a database approach with regards to the matter. b) Represent the requirements as displayed in Figure 1 using an Entity-Relationship diagram (ERD). Add any two new attributes suitable to enhance the subscription information. c) Transform the ERD produced from question b into relational model form. d) Explain the impact of the following statement to your database design. "Expired subscriptions and former subscribers that no longer have a current subscription remain in the database." Draw the new ERD which represent this statement and determine the mapping into relational model.
Answer D and E only
** ERD attached (the second picture)
** Relational model:
To convert the given diagram to a relational model, below are the steps:
Create Relations from Diagram:
The relations in the model are as below:
1. Subscriber: (SubscriberID, Name, Address, Email, Phone)
2. SubscriptionTypes(TypeCode, Name, Description, DuartionDays)
3. Subscriptions(SubscriptionID, Price, StartDate, EndDate)
Solve the relationships by adding referential integration:
1) Subscription will have one Subscriber: Thus add a new foreign key SubscriberID
2) Subscription will have one SubscriptionType, thus add a new foreign key TypeCode.
FINAL RELATIONAL MODEL
1. Subscriber: (SubscriberID, Name, Address, Email, Phone)
Primary key: SubscriberID
Foreign key: NA
2. SubscriptionTypes(TypeCode, Name, Description, DuartionDays)
Primary key: TypeCode (Either D or S)
Foreign key: NA
3. Subscriptions(SubscriptionID, Price, StartDate, EndDate, TypeCode, SubscriberID)
Primary key: SubscriberID
Foreign key: TypeCode from SubscriptionTypes, SubscriberID from Subscriber
Step by step
Solved in 2 steps