Tutorial3 Q
Tutorial3 Q
1. Given the business rule “an employee may have many degrees,” discuss
its effect on attributes, entities, and relationships. (Hint: Remember what a
multivalued attribute is and how it might be implemented.)
3. Suppose you are working within the framework of the conceptual model
in Figure Q3.3.
a. an entity
12. What are multivalued attributes, and how can they be handled
within the database design?
The final three questions are based on the ERD in Figure Q4.14.
13. Write the ten cardinalities that are appropriate for this ERD.
15. What two attributes must be contained in the composite entity between
STORE and PRODUCT? Use proper terminology in your answer.
PROBLEMS
1. Given the following business rules, create the appropriate Crow’s Foot ERD.
The HEG has 12 instructors and can handle up to 30 trainees per class. HEG
offers five “advanced technology” courses, each of which may generate
several classes. If a class has fewer than 10 trainees, it will be canceled.
Therefore, it is possible for a course not to generate any classes. Each class
is taught by one instructor. Each instructor may teach up to two classes or
may be assigned to do research only. Each trainee may take up to two
classes per year.
Given that information, do the following:
3. Use the following business rules to create a Crow’s Foot ERD. Write all
appropriate connectivities and cardinalities in the ERD.
a. A department employs many employees, but each
employee is employed by one department.
b. Some employees, known as “rovers,” are not assigned to
any department.
c. A division operates many departments, but each
department is operated by one division.
d. An employee may be assigned many projects, and a
project may have many employees assigned to it.
e. A project must have at least one employee assigned to it.
f. One of the employees manages each department, and each
department is managed by only one employee.
g. One of the employees runs each division, and each division
is run by only one employee.
5. Create an ERD based on the Crow’s Foot model, using the following
requirements:
• An INVOICE is written by a SALESREP. Each sales representative
can write many invoices, but each invoice is written by a single sales
representative.
• The INVOICE is written for a single CUSTOMER. However, each
customer can have many invoices.
• An INVOICE can include many detail lines (LINE), which describe
the products bought by the customer.
• The product information is stored in a PRODUCT entity.
• The product’s vendor information is found in a VENDOR entity.