OPIM - knowledge check 2

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/67

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:50 AM on 2/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

68 Terms

1
New cards

Entity-Relationship (ER) Model

a high-level representation of data requirements. It focuses on what data is needed while ignoring implementation details like specific software.

2
New cards

Entity

A person, place, product, concept, or activity.

3
New cards

Relationship

A statement about two entities

4
New cards

Reflexive Relationship

A special case where an entity relates to itself.

5
New cards

Attribute

A descriptive property of an entity

6
New cards

Implementation Rule

Types usually become tables/columns, while Instances become the actual rows/data values

7
New cards

ER Diagram (ERD)

A visual tool

8
New cards

Entities

Rectangles with rounded corners

9
New cards

Relationships

Lines connecting the rectangles

10
New cards

Attributes

Placed inside the entity rectangles

11
New cards

Naming Convention

Written as "Entity-Relationship-Entity" and read clockwise.

12
New cards

Glossary (Data Dictionary)

A text-based document (repository) containing synonyms and descriptions that complement the diagram

13
New cards

Conceptual Design

Developing the ER model and capturing requirements (Ignoring implementation).

14
New cards

Logical Design

Converting the ER model into tables, columns, and keys for a specific system.

15
New cards

Physical Design

Adding indexes and specifying how data is organized on storage media.

16
New cards

Entities

Usually nouns (e.g., Person, Product).

17
New cards

Relationships

Usually verbs (e.g., Manages, Belongs To)

18
New cards

Attributes

Nouns that denote specific data (e.g., Names, Dates, Amounts).

19
New cards

Entity

The name of the entity it describes

20
New cards

Qualifier

Describes the meaning (e.g., "First", "Last").

21
New cards

Type

A standard category like "Name", "Number", or "Count".

22
New cards

Conceptual Design

Develops the ER model; ignores implementation details.

  • Step 1: Discover entities, relationships, and attributes.

  • Step 2: Determine cardinality.

  • Step 3: Distinguish strong/weak entities.

  • Step 4: Create supertype/subtype entities.

23
New cards

Logical Design

Converts the ER model into tables, columns, and keys for a specific system.

  • Step 5-7: Implement entities, relationships, and attributes.

  • Step 8: Apply Normal Form.

24
New cards

Physical Design

Adds indexes and specifies storage on media.

25
New cards

ER Diagrams

Depict entities as rectangles with rounded corners, relationships as lines, and attributes inside entity rectangles. Attributes are considered optional detail.

26
New cards

The Glossary

Also called a data dictionary or repository. It documents names, synonyms, and full-sentence descriptions.

27
New cards

Relationship Names

Read the full name clockwise around the center of the relationship.

28
New cards

Relationship Maximum (The "Crow's Foot")

This represents the greatest number of instances of one entity that can relate to another.

  • Singular (One): Shown as a short bar across the relationship line.

  • Plural (Many): Shown as three short lines that look like a bird's foot (Crow's Foot).

29
New cards

Relationship Minimum (Required vs. Optional)

This represents the least number of instances that can relate.

  • Required (One): Shown as a short bar.

  • Optional (Zero): Shown as a circle.

  • Placement Tip: In a diagram, maxima symbols appear next to the entity, while minima symbols appear farther away.

30
New cards

Attribute Cardinality

  • Attribute Maximum: Plural attributes are marked with a "P".

  • Attribute Minimum: Required attributes are marked with an "R".

  • Default: Unless marked, attributes are presumed to be singular and optional.

31
New cards

Unique Attributes

  • Unique Attribute: Each value describes at most one entity instance (e.g., VIN number).

  • Unique Composite: A combination of attributes that is unique (e.g., Airline Code + Flight Number).

  • Notation: In diagrams, unique attributes are followed by a "U".

32
New cards

Cardinality

refers to the maxima and minima of relationships and attributes.

33
New cards

Singular (One)

A short bar across the line.

34
New cards

Plural (Many)

Three short lines converging at a point (Crow's Foot).

35
New cards

Required (One)

A short bar

36
New cards

Optional (Zero)

A circle

37
New cards

“P”

Plural attribute

38
New cards

“R”

Required attribute

39
New cards

“U”

Unique attribute

40
New cards

Strong Entity

Has one or more identifying attributes (unique, singular, and required). One often becomes the Primary Key.

41
New cards

Weak Entity

Does not have an identifying attribute. It depends on an identifying relationship to an identifying entity.

42
New cards

Identifying Relationship Notation

Shown with a diamond next to the identifying entity on the ER diagram.

43
New cards

The 3 Phases of Database Design

  1. Conceptual Design: Captures requirements; ignores implementation. (Steps 1–4: Discovery, Cardinality, Strong/Weak, Supertype/Subtype).

  2. Logical Design: Converts ER model to tables/keys for a specific system. (Steps 5–8: Implement objects, Apply Normal Form).

  3. Physical Design: Adds indexes and specifies storage on media.

44
New cards

Supertype

The "Parent" entity. It contains the common attributes shared by all subgroups (e.g., EmployeeID, Name, HireDate).

45
New cards

Subtype

The "Child" entity. It contains only the attributes unique to that specific group (e.g., HourlyRate for Hourly employees, or Degree for Faculty).

46
New cards

Inheritance

Every instance of a subtype "inherits" all attributes and relationships from the supertype.

47
New cards

Primary Keys

The primary key of the supertype and all its subtypes must be identical.

48
New cards

Relationships

Relationships connected to the supertype apply to all subtypes. Relationships connected to a specific subtype apply only to that subtype.

49
New cards

Specialization (Top-Down)

Starting with a general entity (e.g., Student) and breaking it into more specific ones (Undergrad, Graduate) based on differing characteristics.

50
New cards

Generalization (Bottom-Up)

Noticing that several entities (e.g., Car, Truck, Motorcycle) share common traits and grouping them under a higher-level entity (Vehicle).

51
New cards

Identifying Relationship

A relationship where the Primary Key of the parent entity is required to uniquely identify the child entity.

52
New cards

Non-Identifying Relationship

A relationship where the child entity has its own unique ID and doesn't "need" the parent to be identified

53
New cards

The Mechanics of Foreign Keys (FK)

A Foreign Key is how we actually "do" a relationship in a real database. It is a column in one table that points to the Primary Key of another.

54
New cards

Where does the FK go?

In a 1:M (One-to-Many) relationship, the Foreign Key always goes on the "Many" side.

Example: One Department has Many Employees. The DepartmentID (FK) goes into the Employee table.

55
New cards

Referential Integrity

A rule stating that every Foreign Key value must match an existing Primary Key value in the parent table. (You can't have an employee in Department #99 if Department #99 doesn't exist!)

56
New cards

Composite Key

A Primary Key made of two or more attributes (e.g., StudentID + ClassID to identify a specific Enrollment).

57
New cards

Concatenation

The formal term for combining these attributes

58
New cards

Unary (Recursive) Relationships

A Unary Relationship occurs when an entity has a relationship with itself. This is often called a Recursive relationship.

Primary/Foreign Key Rule: In a 1:M unary relationship, the Foreign Key and the Primary Key are in the same table.

59
New cards

Ternary Relationships

A Ternary Relationship involves three different entities associated through a single relationship.

60
New cards

The "Diamond" Rule

In many ER notations (like Chen or standard academic models), a ternary relationship is shown as a diamond connected to three rectangles.

61
New cards

Complexity Warning

Many database tools (and even logical design steps) require you to convert these into a "Weak Entity" or an "Associative Entity" (see below) because most software can only handle binary (two-way) links.

62
New cards

The Five Main Rules for Tables (Relations)

  1. Values are Atomic: Each cell must contain exactly one value. No lists or multiple pieces of data in one box (e.g., you can't put two phone numbers in one "Phone" cell).

  2. Attribute Names are Unique: You cannot have two columns named "Phone" in the same table.

  3. All Rows are Unique: No two rows can be identical. This is why every table needs a Primary Key.

  4. Sequence of Columns is Irrelevant: The data doesn't change meaning if you swap the "Name" and "Phone" columns.

  5. Sequence of Rows is Irrelevant: The data doesn't change meaning if you sort by Last Name vs. ID.

63
New cards

Entity Integrity Rule

The Primary Key cannot be NULL (empty). Every row must be identifiable.

64
New cards

Referential Integrity Rule

A Foreign Key value must either match an existing Primary Key in the related table or be NULL (if the relationship is optional). This ensures you don't have an "orphan" record pointing to a non-existent parent.

65
New cards

Mapping 1:M (One-to-Many) Relationships

This is the most common relationship in database design.

  • The Rule: Take the Primary Key from the "One" side and place it as a Foreign Key in the table on the "Many" side.

  • Example: One Department has many Employees.

    • Action: Put DepartmentID into the Employee table.

66
New cards

Mapping M:N (Many-to-Many) Relationships

Relational databases cannot handle M:N relationships directly between two tables.

  • The Rule: Create a new table (often called an Intersection Table or Associative Relation).

  • The Components: This new table will have:

    1. The Primary Key of Table A.

    2. The Primary Key of Table B.

    3. Any attributes that belonged to the relationship itself (like Date or Quantity).

  • The PK of the New Table: Usually a Composite Key made of both Foreign Keys.

67
New cards

Mapping 1:1 (One-to-One) Relationships

These are rarer and require a choice.

  • The Rule: You can put the Foreign Key in either table, but the best practice is to put it in the table with Mandatory Participation (the side that "must" have a record).

  • Example: One Employee has one Office. If every office must have an employee, put EmployeeID in the Office table.

68
New cards

Mapping Weak Entities (Identifying Relationships)

Recall that a Weak Entity doesn't have a full identity of its own.

  • The Rule: The table for the weak entity must include the Primary Key of the Identifying (Strong) Entity as part of its own Composite Primary Key.

  • Visual: In your schema, you will see two underlined attributes in the weak entity table.