Key Concepts in Relational Database Design

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

1/43

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.

44 Terms

1
New cards

Relational Model

The relational model, introduced in 1970 by E.F. Codd, is now the standard model for commercial DBMS products.

2
New cards

Relation

two-dimensional tables with named columns and rows.

3
New cards

Entity

an identifiable thing that users want to track. It can be a person, object, concept, or event.

4
New cards

Attribute

properties that describe entities

5
New cards

Functional Dependency

a relationship that exists when one attribute uniquely determines another attribute.

6
New cards

Determinant

an attribute or a set of attributes on which some other attribute is fully functionally dependent.

7
New cards

Candidate Key

determines all other columns in a relation. A table may have multiple, but one is selected as the primary key.

8
New cards

Composite Key

A key consisting of two or more columns.

9
New cards

Primary Key

a candidate key chosen to identify rows in a relation.

10
New cards

Surrogate Key

an artificial column added to serve as the primary key. It is typically short, numeric, never changes, and meaningless to users.

11
New cards

Foreign Key

a column or composite of columns that is the primary key of another table.

12
New cards

Referential Integrity Constraint

ensures that a foreign key value must match an existing primary key value in another table.

13
New cards

Normal Form

a property of a relation that ensures it is free from undesirable characteristics like redundancy and dependency.

14
New cards

Multivalued Dependency

occurs when one attribute in a relation uniquely determines another attribute, which can have multiple values.

15
New cards

Domain Integrity Constraint

ensures that all entries in a column are of the same kind.

16
New cards

Entity Set

a collection of similar types of entities.

17
New cards

Field

Represents an attribute in a record.

18
New cards

Relationship Attributes

Attributes that describe the relationship between entities in a relational model.

19
New cards

ER Diagram

the logical view of a system, including entities, entity types, entity sets, and relationships.

20
New cards

Schema

the organization of data as a blueprint of how the database is constructed.

21
New cards

Entity Integrity Constraint

states that the primary key must have unique, non-null data values in every row.

22
New cards

foreign key

A column or composite of columns that is the primary key of another table, establishing a link between tables.

23
New cards

functional dependency

Occurs when the value of one attribute determines the value of another.

24
New cards

determinant

The attribute on the left side of the dependency that determines every other column in the relation.

25
New cards

composite determinant

A determinant that consists of more than one attribute.

26
New cards

normalization

Minimizes redundant data by organizing data into tables and defining relationships between them.

27
New cards

normal forms

Categorized relations based on modification anomalies or other problems to create appropriate database designs.

28
New cards

First Normal Form (1NF)

Meets the conditions for a relation and has a defined primary key.

29
New cards

Second Normal Form (2NF)

Must be in all previous normal froms; all non-key attributes must be dependent on the primary key.

30
New cards

Third Normal Form (3NF)

Must be in all pervious normal forms; no non-key attributes determined by another non-key attribute.

31
New cards

Boyce-Codd Normal Form (BCNF)

Must be in all other previous normal forms; every determinant is a candidate key.

32
New cards

Fourth Normal Form (4NF)

Addresses multivalued dependencies by moving each multivalued dependency to its own table.

33
New cards

Fifth Normal Form (5NF)

A table is in this normal form only if it is in all pervious normal forms and cannot be decomposed into smaller tables without loss of data.

34
New cards

Domain-Key Normal Form (DK/NF)

Make every constraint a logical consequence of candidate keys and domains.

35
New cards

modification anomalies

Include deletion, insertion, and update anomalies.

36
New cards

deletion anomaly

Deleting data results in losing facts about multiple entities.

37
New cards

insertion anomaly

Cannot insert data about one entity without knowing data about another.

38
New cards

update anomaly

Data inconsistencies occur when updating data.

39
New cards

multivalued dependency

Occurs when a determinant is matched with a set of values.

40
New cards

domain integrity constraint

All values in a column must be of the same kind.

41
New cards

entity integrity constraint

The primary key must have unique, non-null data values in every row.

42
New cards

referential integrity constraint

Foreign key values must exist as primary key values in the corresponding relation.

43
New cards

data integrity

Ensures that the data is useful and meaningful.

44
New cards

7 characteristics of a relation

  • rows contain data about an entity

  • columns contain data about the attributes of an entity

  • All entries in a column are of the same kind

  • each column has a unique name

  • cells of the table hold a single value

  • order of the columns/rows is unimportant

  • no 2 rows are identical