Beruflich Dokumente
Kultur Dokumente
Tutorial 3
Q1. How are many to many relationships (M:N) addressed in the development of an
E-R diagram? Give an example of a M:N relationship and explain how it is
addressed for an internal model.
For example: a video rental database can have the same tape being rented by
many customers, and the same customer renting many tapes.
M N
CUSTOMER rents TAPE
Conceptual Model
Note that the O is only next to customer because when the video rental company
buys a new tape, it hasn’t been yet rented by any customer but they already
must enter it into the database. However, they don’t enter a new person into
their database until that person actually becomes a customer by renting a tape.
1 M M 1
CUSTOMER RENTAL TAPE
Internal Model
Note that the O now is on the side of RENTAL going to TAPE. The CUSTOMER
record only gets created when he rents a TAPE. So a CUSTOMER must have a
relationship with RENTAL. Whereas the TAPE record was created before anyone
rented it. So the association with RENTAL is optional.
Q2. What is the difference between a composite key, a composite attribute and a
composite entity?
A composite entity, also known as the bridge entity, is used as a bridge to break
M:N relationships into two sets of 1:M relationships.
Q3. What is a derived attribute and how it is represented in the Chen’s model?
Crowfoot
** Note to tutor: If time permits, can expose student to insert table such as.
Create databse dbStudent
Connect to dbStudent