DBMS Finals - Mikki

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Bulacan State University

COLLEGE OF INFORMATION AND COMMUNICATION TECHNOLOGY


City of Malolos, Bulacan

FINAL EXAMINATION IN DBMS


Name:____________________________
Year and Section:___________________
Instructor:_______________________

Date:___________________________

GENERAL INSTRUCTION: NO ERASURES


Test I: Identification
Identify the items that are being asked. Write your answers on the space provided.
_____________1. This is a subgrouping of the entities in an entity type that is meaningful
to the organization and has unique attributes from the other subgroups.
_____________2. This is a generic type of entity that has a relationship with one or more
subtypes.
_____________3. This kind of constraint addresses the problem whether an instance must
be a member of at least one subtype.
_____________4. This kind of constraint addresses the problem whether an instance of a
supertype may simultaneously be a member of two or more subtypes.
_____________5. A kind of completeness constraint that specifies that every entity
instance/row of data MUST be a member of at least one subtype.
_____________6. A kind of completeness constraint that specifies that an entity
instance/row of data is allowed not to be part of any subtype.
_____________7. A kind of disjointness constraint that specifies that an instance of the
supertype can be only part of ONE of the subtypes.
_____________8. A kind of disjointness constraint that specifies that an instance of the
supertype may be part of two or more subtypes.
_____________9. The letter that signifies overlap in the EERD.
_____________10. The letter that signifies disjoint in the EERD.
Test II: Situational
Create the Entity-relationship diagram and the relational model for the following
situation. Also, during normalization, please include 1NF,2NF, and 3NF respectively.
NOTE: This is a summation of our lesson for the semester; please apply all possible rules
on the following situation, including normalization.
An automobile repair shop is having a hard time creating a schedule for their
customers. As an option, they decided to create a reservation system specifically
made for their members. Listed below are the business rules of the system:
a. An AUTOMOBILE, which has attributes Plate_Number, Automobile_Type,
Model, should be owned by a single MEMBER. The specific MEMBER should
have Member_ID, Member_Name, Age, Address, Contact_Num. Conversely, A
MEMBER can own as many AUTOMOBILE as he can.
b. An AUTOMOBILE should be repaired by as many REPAIRMAN that can attend
to it. Also, a REPAIRMAN can only repair a single AUTOMOBILE at a given
time. Attributes for REPAIRMAN is Employee_Num, Name, Salary,
Contact_Num.

c. A REPAIRMAN use a single EQUIPMENT at a time. Meanwhile, an EQUIPMENT


can be used by as many REPAIRMAN it needs to be used. Attributes for
EQUIPMENT are EQPT_Num, EQPT_Type, Quantity, and AVAILABILTY.
d. A MEMBER must pay as much TRANSACTION that he availed. Also, A
TRANSACTION can be paid by a single MEMBER only. Attributes for
TRANSACTION are Transaction_Num, Service_Type, and Payment_Mode.
Payment can be made either by FULL = F or by INSTALLMENT = I. Full
payment has a unique attribute for TOTAL_AMOUNT. Payment by instalment
has an attribute of Debt_No.
e. If a MEMBER has chosen to pay through INSTALLMENT, he will have to pay his
instalment through the remaining BALANCE. BALANCE has an attribute of
Balance_Num, Amount_Paid, and Total_Balance. A MEMBER may pay through
INSTALLMENT as many times as he want. An INSTALLMENT account can only
be paid by a single USER.
f.

A REPAIRMAN can receive as much TRANSACTION due to the number of


repairs he has done. At the same time, a TRANSACTION is being done by as
many REPAIRMAN that has finished the job.

g. An AUTOMOBILE is required to be owned by a MEMBER. Conversely, a


MEMBER is required to own an AUTOMOBILE.
h. An EQUIPMENT may or may not be used by a REPAIRMAN during repair. At the
same time, a REPAIRMAN may or may not use EQUIPMENT during the repair.
i.

A MEMBER may or may not have a TRANSACTION. A TRANSACTION, however,


must always be connected to a MEMBER.

j.

A TRANSACTION should always be directed to a REPAIRMAN. At the same


time, a REPAIRMAN may or may not handle a TRANSACTION at a given time.

k. A REPAIRMAN may or may not handle an AUTOMOBILE at a given time. At the


same time, an AUTOMOBILE may or may not be repaired by a REPAIRMAN at
a certain moment.

You might also like