The Relational Database Model

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/63

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:24 PM on 9/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

64 Terms

1
New cards

Relational Database Model

organizes data into relations, commonly known as tables.

2
New cards

Tables

to store data

3
New cards

Rows

to represent records

4
New cards

Columns

to represent attributes

5
New cards

Keys

to uniquely identify and connect records

6
New cards

Constraints

to maintain data accuracy and integrity

7
New cards

Relation

is a table made up of rows and columns.

8
New cards

Tuple

is a row in a relation. It represents one record.

9
New cards

Attribute

is a column in a table. It describes a property of an entity.

10
New cards

Domain

is the set of allowable values for an attribute.

11
New cards

Relational Schema

describes the structure of a relation.

12
New cards

Keys

help identify records and connect tables.

13
New cards

Superkey

A superkey is any attribute or combination of attributes that can uniquely identify a row in a table.

Example: STUDENT(StudentID, Email, StudentName)

14
New cards

Candidate Key

is a minimal superkey. It uniquely identifies a row without unnecessary attributes.

Example: StudentID, Email

15
New cards

Primary Key

is the candidate key selected as the main identifier of a table.

Example: STUDENT(StudentID, StudentName, Program)

16
New cards

Composite Key

A composite key is a key made up of two or more attributes.

Example: ENROLLMENT(StudentID, CourseCode, Semester)

17
New cards

Foreign Key

is an attribute in one table that refers to the primary key of another table.

Example: STUDENT(StudentID, StudentName) PK

ENROLLMENT(EnrollmentID, StudentID, CourseCode) FK

18
New cards

Partial Key

is an attribute of a weak entity that can identify weak entity records only within the same owner entity.

19
New cards

Integrity Constraints

are rules that ensure data in the database remains accurate, valid, and consistent.

20
New cards

Entity Integrity Constraint

The entity integrity constraint states that a primary key cannot be null.

This is because the primary key is used to identify each record.

21
New cards

Referential Integrity Constraint

states that a foreign key value must match an existing primary key value in the related

table, or it must be null if allowed.

22
New cards

Domain Integrity Constraint

ensures that attribute values belong to a valid set of values.

Example: Grade must be between 1.00 and 5.00.

Units must be greater than 0.

23
New cards

Key Constraint

ensures that candidate keys or primary keys are unique.

24
New cards

Null Constraint

controls whether an attribute is allowed to have no value.

Example: StudentName must not be null.

MiddleName may be null.

25
New cards

Unique Constraint

ensures that no two records have the same value for a certain attribute.

26
New cards

Rule 1: Map Each Strong Entity into a RelationRule 1: Map Each Strong Entity into a Relation

Each strong entity becomes a table.

The entity’s simple attributes become columns.

The entity’s key becomes the primary key of the table.

27
New cards

Rule 2: Map Composite Attributes into Their Simple Components

A composite attribute should be broken down into its individual parts.

28
New cards

Rule 3: Map Multivalued Attributes into Separate Relations

A multivalued attribute should be placed in a separate table.

Example: If a student may have multiple contact numbers, create a separate relation.

29
New cards

Rule 4: Map One-to-One Relationships

For a 1:1 relationship, place the primary key of one table as a foreign key in the other table.

30
New cards

Rule 5: Map One-to-Many Relationships

For a 1:M relationship, place the primary key of the “one” side as a foreign key in the “many” side.

31
New cards

Rule 6: Map Many-to-Many Relationships

For an M:M relationship, create a new relation, also called an associative table or junction table.

32
New cards

Rule 7: Map Relationship Attributes

If a relationship has its own attributes, place those attributes in the relation created for the relationship.

33
New cards

Rule 8: Map Weak Entities

A weak entity depends on an owner entity.

34
New cards

map a weak entity:

Create a relation for the weak entity.

35
New cards

map a weak entity:

●Include the primary key of the owner entity as a foreign key.

36
New cards

map a weak entity:

Combine the owner key with the weak entity’s candidate key to form the primary key.

37
New cards
38
New cards
39
New cards
40
New cards
41
New cards
42
New cards
43
New cards
44
New cards
45
New cards
46
New cards
47
New cards
48
New cards
49
New cards
50
New cards
51
New cards
52
New cards
53
New cards
54
New cards
55
New cards
56
New cards
57
New cards
58
New cards
59
New cards
60
New cards
61
New cards
62
New cards
63
New cards
64
New cards