1. Home
  2. Explore
  3. Computer Science
  4. Entity Relationship Diagrams

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Entity Relationship Diagrams

  • 85Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: ERD Foundations
A visual way of expressing the logical design of a database is an
.

85 questions

  1. 1
    A visual way of expressing the logical design of a database is an
    _____
    .
    Hint

    Think of the diagram that visually describes database structure.

    Answer

    Entity Relationship Diagram (ERD)

  2. 2
    The things a database must capture, such as owner names, pet photos, and pet addresses, are its information
    _____
    .
    Hint

    These describe what the database needs to support.

    Answer

    requirements

  3. 3
    In database design, cardinality describes how many instances of one thing are associated with how many instances of
    _____
    .
    Hint

    Cardinality concerns the number of instances on both sides of a relationship.

    Answer

    another thing

  4. 4
    The two ERD notations discussed are Chen notation and
    _____
    notation.
    Hint

    The second notation is named after the shape used to indicate many.

    Answer

    crow’s foot

  5. 5
    An ERD helps clarify the relationships and other crucial aspects of a database
    _____
    .
    Hint

    This is the process of planning how a database will be structured.

    Answer

    design

  6. 6
    A pet database might need to record the animal category of each pet, such as dog or cat, as its
    _____
    .
    Hint

    This term distinguishes categories of animals kept as pets.

    Answer

    Pet Type

  7. 7
    A diagram that identifies entities and their relationships communicates what the database needs to keep track of and how those things relate to
    _____
    .
    Hint

    The diagram shows connections among the things being modeled.

    Answer

    each other

  8. 8
    Choosing relationship cardinalities carefully is crucial because incorrect decisions can produce a database system that does not do what it is supposed to
    _____
    .
    Hint

    Consider the practical consequence of modeling a relationship incorrectly.

    Answer

    do

  9. 9
    A useful first step in turning requirements into a database design is to identify the
    _____
    in the requirement statement.
    Hint

    These words often name the things the database must keep track of.

    Answer

    nouns

  10. 10
    When preparing candidate terms from requirements, plural nouns such as “People” are usually changed to the
    _____
    form.
    Hint

    Use the form that refers to one instance of a thing.

    Answer

    singular

  11. 11
    If “Owner” is redundant because every owner in the requirements is a person, the model can retain “Person” and discard
    _____
    .
    Hint

    Keep the broader term that already includes this role.

    Answer

    Owner

  12. 12
    If the only animals discussed in a pet database are pets, “Animal” can be removed from the candidate terms as
    _____
    .
    Hint

    The term adds no distinct category beyond “Pet” in this context.

    Answer

    redundant

  13. 13
    To remove ambiguity, the open-ended term “Type” is clarified as
    _____
    when it means the kind of animal a pet is.
    Hint

    Add the modeled object to the generic term.

    Answer

    Pet Type

  14. 14
    After singularizing and refining the candidate terms, the six terms are Person, Pet, Name, Photo, Pet Type, and
    _____
    .
    Hint

    This term identifies where a pet may reside.

    Answer

    Address

  15. 15
    The six identified terms each designate a particular kind of
    _____
    that the database needs to track.
    Hint

    Entities and related modeled concepts represent kinds of these.

    Answer

    thing

  16. 16
    In the example model, the fact that Tricia Anderson owns Cleo and Buster illustrates that the database must record a relationship between a
    _____
    and a Pet.
    Hint

    Tricia belongs to this entity category.

    Answer

    Person

  17. 17
    In the example requirements, a Person is related to a Pet through the relationship
    _____
    .
    Hint

    This describes what a person does with a pet in the model.

    Answer

    owns

  18. 18
    The relationship between a Photo and a Pet is expressed as a Photo
    _____
    a Pet.
    Hint

    Think of what an image shows.

    Answer

    depicts

  19. 19
    The relationship between a Pet and an Address describes where the pet
    _____
    .
    Hint

    This verb describes the pet’s place of living.

    Answer

    resides

  20. 20
    A relationship sketch that says pets can be owned by people is incomplete until it specifies how many people can own a
    _____
    .
    Hint

    The unanswered question concerns the number of owners per animal.

    Answer

    pet

  21. 21
    When deciding cardinality, designers should provide plausible
    _____
    for their choices.
    Hint

    A modeling decision should be supported by an explanation.

    Answer

    reasons

  22. 22
    In the example model, each Pet is owned by
    _____
    people.
    Hint

    The model allows a pet to have no owners or multiple owners.

    Answer

    zero or more

  23. 23
    In the example model, each Person owns
    _____
    Pets.
    Hint

    A person may own no pets or several pets.

    Answer

    zero or more

  24. 24
    In the example model, each Person has
    _____
    Name.
    Hint

    The model requires a person to have a name, without allowing multiple names in this relationship.

    Answer

    one

  25. 25
    In the example model, each Name belongs to
    _____
    People.
    Hint

    The same name may belong to multiple people, and some names may not currently be used.

    Answer

    zero or more

  26. 26
    In the example model, each Pet has
    _____
    Name.
    Hint

    The model requires every pet to have a name.

    Answer

    one

  27. 27
    In the example model, each Name belongs to
    _____
    Pets.
    Hint

    Different pets may share a name, and a name might not yet be assigned.

    Answer

    zero or more

  28. 28
    In the example model, each Photo depicts
    _____
    Pet.
    Hint

    Each photo is associated with a single animal in this relationship.

    Answer

    one

  29. 29
    In the example model, each Pet is depicted in
    _____
    Photos.
    Hint

    A pet might have no photos or might appear in many.

    Answer

    zero or more

  30. 30
    In the example model, each Pet Type applies to
    _____
    Pets.
    Hint

    A type may not yet be used or may describe many pets.

    Answer

    zero or more

  31. 31
    In the example model, each Pet has
    _____
    Pet Type.
    Hint

    Each pet is assigned a single animal category.

    Answer

    one

  32. 32
    In the example model, each Pet resides at
    _____
    Address.
    Hint

    A pet may have no recorded address, but the model does not allow several.

    Answer

    zero or one

  33. 33
    In the example model, each Address has
    _____
    Pets living in it.
    Hint

    An address may have no pets or several.

    Answer

    zero or more

  34. 34
    If a database incorrectly requires every pet name to belong to exactly one pet, users may be unable to store two pets with the same
    _____
    .
    Hint

    The error arises when the design treats this value as unique when it is not.

    Answer

    name

  35. 35
    In Chen notation, each noun identified as a modeled kind of thing is represented by a box called an
    _____
    .
    Hint

    Person, Pet, and Photo are examples of these modeled things.

    Answer

    entity

  36. 36
    In Chen notation, a relationship is represented by a
    _____
    connected to the relevant entities.
    Hint

    This geometric shape distinguishes relationships from entity boxes.

    Answer

    diamond

  37. 37
    In Chen notation, relationship cardinalities are expressed using symbols placed at the
    _____
    of a relationship.
    Hint

    Read the symbols from each related entity’s side.

    Answer

    ends

  38. 38
    In the mother-daughter example, a Daughter has a maximum of
    _____
    Mother.
    Hint

    The illustration is about a biological mother and limits each daughter to one.

    Answer

    1

  39. 39
    In the mother-daughter example, a Mother may have a maximum of
    _____
    daughters.
    Hint

    This letter indicates that no defined upper limit is imposed.

    Answer

    N

  40. 40
    In Chen notation, a daughter’s minimum number of biological mothers is
    _____
    .
    Hint

    The relationship is universal for daughters in the example.

    Answer

    one

  41. 41
    A double line in Chen notation indicates that participation in a relationship is
    _____
    .
    Hint

    Every instance of the entity must participate in the relationship.

    Answer

    universal

  42. 42
    In the mother-daughter example, a Mother’s minimum number of daughters is
    _____
    .
    Hint

    Some mothers in the example do not have daughters.

    Answer

    zero

  43. 43
    A single line in Chen notation represents a relationship that is
    _____
    rather than universal.
    Hint

    Some instances may not participate in this relationship.

    Answer

    non-universal

  44. 44
    In the pet model, the required relationships from Pet to Name, Person to Name, and Pet to Pet Type are shown with
    _____
    lines.
    Hint

    These relationships are mandatory for every pet or person in the model.

    Answer

    double

  45. 45
    In the Chen diagram, the maximum number of Pets owned by a Person is represented by
    _____
    .
    Hint

    The symbol means an unlimited number.

    Answer

    N

  46. 46
    In the Chen diagram, the maximum number of People who may own a Pet is represented by
    _____
    .
    Hint

    This letter also means any number, but differs from the symbol used at the other end.

    Answer

    M

  47. 47
    In Chen notation, an entity characteristic or property that the database tracks is called an
    _____
    .
    Hint

    Image Filename and Date Uploaded are examples for Photo.

    Answer

    attribute

  48. 48
    In Chen notation, an attribute is drawn as an
    _____
    connected to its entity.
    Hint

    This rounded shape is attached to the entity box by a line.

    Answer

    oval

  49. 49
    In the Photo example, Image Filename uniquely identifies a photo, so it is a
    _____
    attribute.
    Hint

    No two photos in the model should share this identifying value.

    Answer

    unique

  50. 50
    In Chen notation, an attribute that uniquely identifies an entity is highlighted by
    _____
    it.
    Hint

    This visual emphasis marks the identifying attribute.

    Answer

    underlining

  51. 51
    If a Geographical Location is identified by the combination of Latitude and Longitude, both attributes must be
    _____
    .
    Hint

    Every component of a combined unique identifier receives the key marking.

    Answer

    underlined

  52. 52
    An entity whose identity depends partly on the identity of a related parent entity is called a
    _____
    entity.
    Hint

    Order Line depends partly on its related Order for identification.

    Answer

    weak

  53. 53
    In the Order Line example, the entity’s identifier combines Order Number with
    _____
    .
    Hint

    This attribute distinguishes one line from another within an order.

    Answer

    Line Sequence Number

  54. 54
    In Chen notation, a weak entity is shown with a double border around its box and a double border around its
    _____
    to its parent.
    Hint

    Both the entity and its connection to the identifying parent receive the special border.

    Answer

    relationship

  55. 55
    For a weak entity, its underlined partial identifier does not identify it by itself; it must be combined with the parent entity’s
    _____
    identifier.
    Hint

    The parent contributes the other part of the weak entity’s identity.

    Answer

    unique

  56. 56
    Because each Pet and each Person has exactly one Name in this model, Name can instead be represented as an
    _____
    of each entity.
    Hint

    This choice treats the name as a property rather than a separate modeled thing.

    Answer

    attribute

  57. 57
    Crow’s foot notation represents a relationship between two entities with a
    _____
    rather than a relationship diamond.
    Hint

    The cardinality symbols are placed at the ends of this connector.

    Answer

    line

  58. 58
    At each end of a crow’s foot relationship line, the first cardinality symbol represents the
    _____
    number.
    Hint

    This symbol states the least allowed number of related instances.

    Answer

    minimum

  59. 59
    At each end of a crow’s foot relationship line, the second cardinality symbol represents the
    _____
    number.
    Hint

    This symbol states the greatest allowed number of related instances.

    Answer

    maximum

  60. 60
    The circle symbol in crow’s foot notation represents the cardinality value
    _____
    .
    Hint

    The shape resembles this number.

    Answer

    zero

  61. 61
    The vertical line symbol in crow’s foot notation represents the cardinality value
    _____
    .
    Hint

    The shape resembles this number.

    Answer

    one

  62. 62
    The pronged symbol in crow’s foot notation represents
    _____
    related instances.
    Hint

    The symbol resembles a bird’s foot and indicates a quantity greater than one.

    Answer

    multiple or many

  63. 63
    In the mother-daughter crow’s foot example, each Mother has
    _____
    daughters.
    Hint

    The minimum is zero, and the maximum is many.

    Answer

    zero or more

  64. 64
    In the mother-daughter crow’s foot example, each Daughter has
    _____
    Mother.
    Hint

    The minimum and maximum at this end are both one.

    Answer

    exactly one

  65. 65
    A relationship with a crow’s foot at both ends is called a
    _____
    relationship.
    Hint

    Each side can be associated with multiple instances on the other side.

    Answer

    many-to-many

  66. 66
    A relationship with a crow’s foot at only one end is called a
    _____
    relationship when read from the one side to the many side.
    Hint

    The name describes a single instance associated with multiple instances.

    Answer

    one-to-many

  67. 67
    A relationship with a one symbol at both ends and no crow’s feet is called a
    _____
    relationship.
    Hint

    Each instance on either side corresponds to one instance on the other side.

    Answer

    one-to-one

  68. 68
    The relationship between Person and Pet is
    _____
    because each person may own many pets and each pet may be owned by many people.
    Hint

    Both sides of this relationship can have multiple instances.

    Answer

    many-to-many

  69. 69
    The relationship between Photo and Pet is
    _____
    because each photo depicts one pet while a pet may appear in many photos.
    Hint

    One pet can correspond to multiple photos, but each photo points to one pet.

    Answer

    one-to-many

  70. 70
    The relationship between Pet Type and Pet is
    _____
    because one pet type may apply to many pets while each pet has one type.
    Hint

    A category can be shared by multiple pets, while each pet has a single category.

    Answer

    one-to-many

  71. 71
    The relationship between Address and Pet is
    _____
    because an address can have many pets while each pet has zero or one address.
    Hint

    Many pets may share an address, but each pet is associated with at most one.

    Answer

    one-to-many

  72. 72
    When deciding how to represent a relationship, designers should focus especially on the
    _____
    numbers because they define its basic nature.
    Hint

    These values distinguish one-to-one, one-to-many, and many-to-many relationships.

    Answer

    maximum

  73. 73
    In a crow’s foot ERD, a uniquely identifying attribute may be marked as a
    _____
    key attribute.
    Hint

    This key identifies records within its own table.

    Answer

    primary

  74. 74
    An attribute marked FK is a
    _____
    key attribute that can also be found elsewhere as a primary key.
    Hint

    This key refers to a key in another entity or table.

    Answer

    foreign

  75. 75
    A relational database table can be created for each
    _____
    in an ERD.
    Hint

    Person and Pet are examples that can each become a table.

    Answer

    entity

  76. 76
    In the relational design, each entity attribute can be represented by a
    _____
    within its table.
    Hint

    Tables are organized into rows and these named data fields.

    Answer

    column

  77. 77
    Primary and foreign keys in the tables should align with the primary and foreign keys shown on each
    _____
    in the diagram.
    Hint

    The diagram marks these keys beside its modeled objects.

    Answer

    entity

  78. 78
    In the described relational design, each one-to-many or one-to-one relationship becomes a foreign key
    _____
    .
    Hint

    This database rule enforces a reference between tables.

    Answer

    constraint

  79. 79
    A many-to-many relationship cannot be expressed directly using an ordinary foreign key
    _____
    .
    Hint

    The issue is that neither side alone can represent all pairings with a single reference.

    Answer

    constraint

  80. 80
    To convert a many-to-many relationship into foreign-key relationships, introduce a new entity between the original two entities, creating two
    _____
    relationships.
    Hint

    The new entity records each pairing and connects separately to each original entity.

    Answer

    one-to-many

  81. 81
    In the pet ownership example, the intermediary entity introduced between PERSON and PET is
    _____
    .
    Hint

    It represents an individual instance of a particular person owning a particular pet.

    Answer

    PET OWNERSHIP

  82. 82
    If Jenny and Bill both own Rover, their ownerships are represented as
    _____
    separate instances of Pet Ownership.
    Hint

    Each owner-pet pairing gets its own record.

    Answer

    two

  83. 83
    If Martin owns both Skipper and Claude, each pet pairing is recorded as a separate instance of
    _____
    .
    Hint

    This is the intermediary entity that stores each ownership association.

    Answer

    Pet Ownership

  84. 84
    After translating the many-to-many relationship, both PERSON-to-PET OWNERSHIP and PET-to-PET OWNERSHIP can be captured with ordinary
    _____
    key constraints.
    Hint

    These constraints reference key values in related tables.

    Answer

    foreign

  85. 85
    The intermediary entity used to resolve a many-to-many relationship becomes its own
    _____
    in the relational database.
    Hint

    Each entity in the design maps to one of these database structures.

    Answer

    table

1 of 85
Question 1 of 85

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent