D426 Chapter 4

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/49

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

50 Terms

1
New cards

entity-relationship model

a high-level representation of data requirements, ignoring implementation details, which guides said implementation in a particular database system, such as MySQL

2
New cards

entity

a person, place, product, concept, or activity

3
New cards

relationship

a statement about two entities

4
New cards

attribute

a descriptive property of an entity

5
New cards

reflexive relationship

relates an entity to itself

6
New cards

entity-relationship diagram

a schematic picture of entities, relationships, and attributes

7
New cards

glossary/data dictionary/repository

documents additional detail for an ER diagram in text format, including names, synonyms, and descriptions of entities, relationships, and attributes

8
New cards

entity type

a set of things, ex: all employees in a company

9
New cards

relationship type

a set of related things. ex: employee-manages-department is a set of pairs

10
New cards

attribute type

a set of values. ex: all employee salaries

11
New cards

instance

an element of a set/type

12
New cards

Discovery

The first step of the analysis phase of database design, wherein documents are reviewed and interviews are conducted with database users and managers in order to determine entities, relationships, and attributes

13
New cards

cardinality

the maxima and minima of relationships and attributes in entity-relationship modeling

14
New cards

relationship maximum

the greatest number of instances of one entity that can relate to a single instance of another entity. Usually specified as one or many. Ex: a specific flight can depart from AT MOST one airport, but an airport may have hundreds of flights that can depart from it on any given day

15
New cards

singular

when only one instance of an entity can be related to another particular entity. ex: a flight only arrives at or departs from one airport

16
New cards

plural

when multiple instances of an entity can be related to another particular entity. ex: multiple flights can arrive at or depart from the same airport

17
New cards

relationship minimum

the least number of instances of one entity that can relate to a single instance of another entity, which is usually 0 or 1.

Ex: a flight may have 0 bookings on it, but a booking must relate to at least 1 flight.

18
New cards

attribute maximum

the greatest number of attribute values that can describe each entity instance

19
New cards

attribute minimum

the least number of attribute values that can describe each entity instance

20
New cards

unique attribute

an attribute that describes no more than one entity instance. Indicated with a 1 placed before the attribute maximum and minimum.

Ex: an employee number, airline codes, VIN, etc.

21
New cards
  1. Determine relationship maxima and minima.

  2. Determine attribute maxima and minima.

  3. Identify unique attributes.

  4. Document cardinality in glossary and, optionally, on ER diagram.

Steps to determine cardinality

22
New cards

identifying attribute

a unique, singular, and required (1-1(1)) attribute that corresponds one-to-one to entity instances

23
New cards

strong entity

has one of more identifying attributes, one of which may become the primary key if this is implemented as a table

24
New cards

weak entities

an entity without an identifying attribute, which is instead identified by its relationship to one or more other entities

25
New cards

identifying relationship

a relationship used in place of an identifying attribute for a weak entity

26
New cards

identifying entity

an entity with a 1(1) cardinality to a weak entity, which is represented with a diamond on this entity’s side of the relationship in an ER diagram

27
New cards
  1. Identify strong and weak entities.

  2. Determine the identifying relationship(s) for each weak entity.

  3. Document weak entities and identifying relationships in glossary and ER diagram.

Steps to distinguish strong and weak entities

28
New cards

supertype entity

an overarching entity type whose attributes apply to all entity types contained within.

Ex: Manager has all of the attributes of Employee

29
New cards

subtype entity

a type of entity that is contained as a subset of another entity type and has attributes that other types within the overarching entity type do not.

Ex: In a library database, CD and Book each has attributes that the other does not, but both are part of the “media” type.

30
New cards

IsA Relationship

the identifying relationship between a supertype entity and its subtypes

31
New cards

partition

a group of mutually exclusive subtype entities within a supertype entity. Subtype entities of different partitions overlap and do share instances.

32
New cards

partition attribute

an optional attribute of a supertype that indicates which subtype entity in a partition is associated with each supertype instance.

33
New cards
  1. Identify supertype and subtype entities

  2. Replace similar entities and optional attributes with supertype and subtype entities.

  3. Identify partitions and partition attributes.

  4. Document supertypes, subtypes, and partitions in glossary and ER diagram.

Steps to create supertype and subtype entities.

34
New cards

subject area

a group of related entities that may be notated in some ER models

35
New cards

independent

alternative term for strong entities

36
New cards

dependent

alternative term for weak entities

37
New cards

IDEF1X - Information Definition Version 1X

a standardized ER modeling convention that became popular in part due to its early adoption by the US DOD

38
New cards

Chen notation

a non-standardized form of ER modeling notation that often appears in literature and tools

39
New cards

intangible entity

an entity documented in the data model but not tracked with data in the database

40
New cards

artificial key

a single-column primary key that a database designer creates when no suitable single-column or composite primary key exists within the tables natural attributes

41
New cards

functional dependence

when one column depends on another, meaning that the value in the non-dependent column relates to at most one value in the dependent column

42
New cards

redundancy

the repetition of related values in a table, which can cause database management problems as all copies must be changed when the related values are updated.

43
New cards

normal forms

rules for designing tables with less redundancy, which are numbered first through fifth

44
New cards

First normal form

  • The table has a primary key

  • Every non-key column depends on the primary key.

  • The table has no duplicate rows.

  • Every cell contains exactly one value.

45
New cards

Second Normal Form

all non-key columns depend on the whole primary key (i.e. if the key is composite, all non-key columns have a singular value for each combination of values from the composite key)

46
New cards

third normal form

when all non-key columns depend on the key, the whole key, and nothing but the key

47
New cards

Boyce-Codd normal form

when all dependencies within a table are on unique columns, which never creates a redundancy

48
New cards

candidate key

a simple or composite column that is unique and minimal

49
New cards

normalization

eliminates redundancy by decomposing a table into two or more tables in higher normal form.

50
New cards
  1. List all candidate keys.

  2. Identify dependencies on non-key columns.

  3. Eliminate dependencies on non-key columns.

steps to normalize a table into Boyce-Codd normal form