CISM2020 – BIG DATA MANAGEMENT FOR REVENUE ENHANCEMENT LE DUY DUNG
Assignment 5: Entity-Relationships Data Modeling
1. (2 points) Which symbol represent an entity sets in ER diagrams?
a. Line
b. Rectangle
c. Ellipse
d. Diamond
e. Square
2. (2 points) The relationship connecting a weak entity set with its identifying entity set is called:
a. Connecting relationship
b. Supporting relationship
c. Unique relationship
d. Identifying relationship
3. (2 points) What is true about weak entity set?
a. Weak entity set has a primary key
b. Weak entity set has sufficient attributes to from a key
c. Weak entity set depends on other entity to identify
d. Weak entity set is represented by a double-lined diamond
4. (2 points) How to present the component of a weak key?
a. A double-lined oval
b. An oval with attribute name underlined by a dashed line
c. An oval with attribute name underlined by a solid line
d. An ordinary oval with bold attribute name
e. A rectangle with attribute name underlined by a dashed line
f. A diamond with attribute name underlined by a solid line.
5. (2 points) Which statement is false about ER Diagrams (ERD)?
a. Cardinality expresses possible number of entities participating in a relationship.
b. Identifying relationship is represented by a doubled line.
c. Each ERD must have at least one weak entity set.
6. (2 points) An entity of the A entity set is associated with at most one entity in B. An entity of B entity set can be
associated with any number (zero or more) of entities in A. Choose the reasonable type of relationship between
A and B:
a. One to Many
b. Many to Many
c. One to One
d. Zero to Many
7. (4 points) Northwind is a fictitious foods export-import company. In this simplified version of what you learn
from the previous assignments, the following objects in Northwind’ business are described:
CISM2020 – BIG DATA MANAGEMENT FOR REVENUE ENHANCEMENT LE DUY DUNG
• Products: are the products that Northwind trades in. It has a ID, Name, List Price, and Category name.
• Customers: who buy products from Northwind with following properties: Name, Email (unique), Phone, Address.
• Suppliers– who supply to the company with following information: Name, Email (unique), Phone, Address.
• Orders: the orders that customers place with Northwind. Each Order consists OrderCode which is unique, of Order
Date, and some lines which are often called Order Details with following information: which Product, Quantity,
and Unit Price.
• Purchase Orders (a.k.a. PO) refer to purchase order transaction that Northwind makes with a Supplier. Each PO
has Creation Date, an ordinal number which is unique with each Supplier, Payment Method (cash, check, or
transfer), and a list of Purchase Order Details describing which Product, Quantity, and Unit Cost.
Derive an ER diagram for the data requirements above.
8. (4 points)
a. Map the ER relational diagram in Question 7 to relational tables.
b. Write SQL statements to define the tables (from part a.) with identified constraints and columns. You
should determine appropriate datatype for each column.