Up To Week 5 Defenitions

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

1/57

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:47 PM on 10/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

58 Terms

1
New cards

Minimum cardinality

The minimum number of relationship instances an entity must participate in, usually 0 for optional participation or 1 for mandatory participation.

2
New cards

Maximum cardinality

The maximum number of relationship instances an entity may participate in; this determines whether a relationship is 1:1, 1:M, or M:N.

3
New cards

Cardinality

The allowed number of instances of one entity that can be related to instances of another entity.

4
New cards

Optional participation

A relationship in which an entity may participate zero times; shown with a minimum cardinality of 0.

5
New cards

Mandatory participation

A relationship in which an entity must participate at least once; shown with a minimum cardinality of 1.

6
New cards

One-to-one (1:1) relationship

A relationship where each row on either side can be related to at most one row on the other side.

7
New cards

One-to-many (1:M) relationship

A relationship where one parent row can relate to many child rows, while each child row relates to one parent.

8
New cards

Many-to-many (M:N) relationship

A relationship where rows on both sides can relate to many rows on the other side; it normally requires a bridge or associative table.

9
New cards

0..1

Zero or one; the relationship is optional and can have at most one related row.

10
New cards

Zero or many

A minimum cardinality of 0 and a maximum cardinality of many; commonly shown as a circle with a crow's foot.

11
New cards

Crow's foot

ERD notation indicating the many side of a relationship.

12
New cards

Primary key (PK)

A column or set of columns that uniquely identifies each row in a table and cannot be NULL.

13
New cards

Foreign key (FK)

A column or set of columns whose non-NULL values must match a referenced key in another table, enforcing referential integrity.

14
New cards

Referential integrity

The rule that a foreign-key value must reference an existing valid parent row, unless the foreign key is allowed to be NULL.

15
New cards

UNIQUE constraint

A constraint that prevents duplicate values or duplicate combinations of values in the constrained column or columns.

16
New cards

Composite key

A key made of more than one column that together uniquely identifies a row.

17
New cards

Partial key

An attribute of a weak entity that distinguishes rows only within the context of their owning entity; it combines with the owner's key to form the full key.

18
New cards

Surrogate key

An artificial identifier, such as an auto-increment ID, created to uniquely identify rows rather than using a business-defined value.

19
New cards

Business key

A real-world attribute or combination of attributes that the business considers unique, even when a surrogate primary key is used.

20
New cards

Strong entity

An entity that can be uniquely identified by its own primary key without borrowing its owner's key.

21
New cards

Weak entity

An entity that cannot be fully identified by its own attributes and therefore borrows the key of an owning entity as part or all of its primary key.

22
New cards

Identifying relationship

A relationship where the parent's primary key becomes part of the child's primary key; MySQL Workbench commonly draws it with a solid line.

23
New cards

Non-identifying relationship

A relationship where the foreign key is not part of the child's primary key; MySQL Workbench commonly draws it with a dashed line.

24
New cards

Associative entity

An entity used to represent a many-to-many relationship, usually containing foreign keys to both related entities.

25
New cards

Bridge table

A table placed between two entities to implement a many-to-many relationship, typically using the two foreign keys as a composite key.

26
New cards

Derived attribute

A value calculated from other stored data rather than stored directly, such as calculating age from birth_date.

27
New cards

Operational database

A database that supports day-to-day business activities and transactions, such as opening repair jobs, recording payments, or making sales.

28
New cards

Business rule

A confirmed requirement or constraint describing how the organization says its data and processes must behave.

29
New cards

Assumption

A design decision believed to be true when it has not been explicitly confirmed as a business requirement.

30
New cards

Conceptual design

The high-level database design stage that identifies entities, relationships, and major business rules without focusing on implementation details.

31
New cards

Logical design

The stage that converts the conceptual model into tables, attributes, keys, relationships, and constraints while remaining mostly independent of a specific DBMS.

32
New cards

Physical design

The implementation-focused stage that decides DBMS-specific details such as data types, indexes, storage choices, and column definitions.

33
New cards

INNER JOIN / JOIN

Returns only rows that have matching values on both sides of the join condition.

34
New cards

LEFT JOIN

Returns every row from the left table and matching rows from the right table; unmatched right-side columns become NULL.

35
New cards

CROSS JOIN

Returns every possible combination of rows from the two tables, producing a Cartesian product.

36
New cards

JOIN condition

The ON expression that specifies how rows from two tables correspond, usually by matching a primary key to its foreign key.

37
New cards

Composite-key JOIN

A join involving an entity with a composite key; all columns needed to identify the referenced row must be matched to avoid incorrect extra matches.

38
New cards

Row multiplication

The increase in result rows when one row matches multiple rows in a joined table; joining through multiple many-side relationships can multiply rows further.

39
New cards

Double counting from JOINs

An aggregation error where the same logical value is repeated by joins and then counted or summed more than once.

40
New cards

SUM(DISTINCT value)

Sums only distinct numeric values, but is not a reliable general fix for join double counting because legitimate equal values can be collapsed.

41
New cards

Subquery

A query nested inside another SQL statement whose result is used by the outer query.

42
New cards

Correlated subquery

A subquery that refers to a value from the outer query and is evaluated in relation to each outer row.

43
New cards

EXISTS

A condition that is true when a subquery returns at least one row.

44
New cards

NOT EXISTS

A condition that is true when a correlated subquery returns no matching rows; commonly used to find rows with no related records.

45
New cards

IN

Tests whether a value matches any value returned by a list or subquery.

46
New cards

NOT IN

Tests whether a value matches none of the values in a list or subquery; NULL in the subquery result can cause the comparison to evaluate as UNKNOWN and return no rows.

47
New cards

NULL

A marker meaning a value is missing, unknown, or not applicable; it is not the same as zero or an empty string.

48
New cards

COUNT(*) in a correlated subquery

Counts matching related rows for each outer row; if no matching rows exist, the result is 0 rather than NULL.

49
New cards

Update anomaly

A problem caused by duplicated data where the same fact must be updated in several rows and some copies may be missed.

50
New cards

Insertion anomaly

A problem where a fact cannot be stored without also storing unrelated data because multiple concepts are combined in one table.

51
New cards

Deletion anomaly

A problem where deleting one row unintentionally removes the only stored copy of another important fact.

52
New cards

Normalization

The process of organizing tables to reduce unnecessary duplication and prevent insertion, update, and deletion anomalies.

53
New cards

Nullable foreign key

A foreign key that may contain NULL, allowing the relationship to be optional, such as a repair job that has not yet been assigned a technician.

54
New cards

NOT NULL foreign key

A foreign key that must contain a value, making participation on the child side mandatory, though this alone does not make the child a weak entity.

55
New cards

One-to-many foreign-key placement

For a 1:M relationship, the foreign key normally goes in the table on the many side and references the one side.

56
New cards

Many-to-many foreign-key placement

For an M:N relationship, place the foreign keys in a separate bridge table rather than storing one foreign key directly in either entity.

57
New cards

Composite primary key in a bridge table

Using the foreign keys together as the primary key prevents the same relationship pair from being stored more than once.

58
New cards

Identifying owner key

The primary key of a parent or owner entity that is copied into a weak child's primary key to help identify the child.