12.07.2015 Views

Web-DSS-Chapter-03

Web-DSS-Chapter-03

Web-DSS-Chapter-03

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SECTION 3.5 ■ Relationships 39StateAbbrNameBirdUnionOrderPopulationSTATEFigure 3.6 An example of more than one key attribute.3.5 RelationshipsEntities in an organization do not exist in isolation but are related to each other. Students takecourses and each STUDENT entity is related to the COURSE entity. Faculty members teachcourses and each FACULTY entity is also related to the COURSE entity. Consequently, theSTUDENT entity is related to the FACULTY entity through the COURSE entity. E-R diagramscan also illustrate relationships between entities.We define a relationship as an association among several entities. Consider, for example, anassociation between customers of a bank. If customer Williams has a bank account number 523,then the quality of ownership constitutes a relationship instance that associates the CUS-TOMER instance Williams with the ACCOUNT instance 523. We can think of the relationshipinstance as a verb that links a subject and an object: customer Williams has an account; studentJohn registers for a course; professor Smith teaches a course. A relationship set is a grouping ofall matching relationship instances, and the term relationship type refers to the relationship betweenentity types. For example, Figure 3.7 illustrates a relationship set between the CUSTOMERand the ACCOUNT instances.In an E-R diagram, we represent relationship types with diamond-shaped boxes connectedby straight lines to the rectangles that represent participating entity types. A relationship type isa given name that is displayed in this diamond-shaped box and typically takes the form of aDefinitionAn entity is an object that exists and that is distinguishable from other objects.An attribute is a property or characteristic of an entity type that is of interest to an organization.A relationship is an association among several entities.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!