Tutorial 3
Tutorial 3
Tutorial 3
1. Matching
b. Generalization; specialization
Generalization: The process of combining several subtypes into a single supertype,
focusing on shared attributes. It's an upward abstraction, moving from the specific to
the general.
- Generalization Example: Payment Method
Combining Credit Card, PayPal, and Bank Transfer into a generalized entity called
Payment Method.
Specialization: The process of dividing a supertype into one or more subtypes, focusing
on distinct attributes. It's a downward abstraction, moving from the general to the
specific.
Specialization Example: Employee
Dividing an Employee entity into subtypes such as Full-Time Employee and Part-Time
Employee based on their work hours and benefits.
Entity Cluster: A group of related entities that are associated with each other, often used
to simplify the design by grouping closely related entities and their relationships.
Entity Cluster Example: Order
An Order might cluster entities like Customer, Product, and Payment Details,
representing a group of related entities that collectively define a complete transaction.
7. A laboratory has several chemists who work on one or more projects. Chemists also may
use certain kinds of equipment on each project. Attributes of CHEMIST include
Employee ID (identifier), Name, and Phone No. Attributes of PROJECT include Project
ID (identifier) and Start Date. Attributes of EQUIPMENT include Serial No and Cost.
The organization wishes to record Assign Date—that is, the date when a given equipment
item was assigned to a particular chemist working on a specified project. A chemist must
be assigned to at least one project and one equipment item. A given equipment item need
not be assigned, and a given project need not be assigned either a chemist or an
equipment item. Provide good definitions for all of the relationships in this situation.