Provide an example of a relationship with attributes

      

Provide an example of a relationship with attributes

  

Answers


KELVIN
An example of a relationship with an attribute is the relationship called PlaysIn, which associates the Actor and Video entities. We may wish to record the character played by an actor in a given video. This information is associated with the PlaysIn relationship rather than the Actor or Video entities. We create an attribute called character to store this information and assign it to the PlaysIn relationship, as illustrated in Figure 7.12. Note, in this figure the character attribute is shown using the symbol for an entity; however, to distinguish between a relationship with an attribute and an entity, the rectangle representing the attribute is associated with the relationship using a dashed line.
kalvinspartan answered the question on July 7, 2018 at 08:39


Next: Describe what multiplicity represents for a relationship.
Previous: Describe how strong and weak entities differ and provide an example of each.

View More Computer Science Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions