Database Systems Ch 4-5

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/36

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.

37 Terms

1
New cards

Relation

A named two-dimensional table of data.

2
New cards

Primary key

An attribute or a combination of attributes that uniquely identifies each row in a relation.

3
New cards

Composite key

A primary key that consists of more than one attribute.

4
New cards

Foreign key

An attribute in a relation that serves as the primary key of another relation in the same database.

5
New cards

Null

A value that may be assigned to an attribute when no other value applies or when the applicable value is unknown.

6
New cards

Entity integrity rule

A rule that states that no primary key attribute (or component of a primary key attribute) may be null.

7
New cards

Referential integrity constraint

A rule that states that either each foreign key value must match a primary key value in another relation or the foreign key value must be null.

8
New cards

Well-structured relation

A relation that contains minimal redundancy and allows users to insert, modify, and delete the rows in a table without errors or inconsistencies.

9
New cards

Anomaly

An error or inconsistency that may result when a user attempts to update a table that contains redundant data. The three types of anomalies are insertion, deletion, and modification anomalies.

10
New cards

Surrogate primary key

A serial number or other system-assigned primary key for a relation.

11
New cards

Recursive foreign key

A foreign key in a relation that references the primary key values of the same relation.

12
New cards

Normalization

The process of decomposing relations with anomalies to produce smaller, well-structured relations.

13
New cards

Normal form

A state of a relation that requires that certain rules regarding relationships between attributes (or functional dependencies) are satisfied.

14
New cards

Functional dependency

A constraint between two attributes in which the value of one attribute is determined by the value of another attribute.

15
New cards

Determinant

The attribute on the left side of the arrow in a functional dependency.

16
New cards

Candidate key

An attribute, or combination of attributes, that uniquely identifies a row in a relation.

17
New cards

First normal form (1nF)

A relation that has a primary key and in which there are no repeating groups.

18
New cards

Second normal form (2nF)

A relation in first normal form in which every nonkey attribute is fully functionally dependent on the primary key.

19
New cards

Third normal form (3nF)

A relation that is in second normal form and has no transitive dependencies.

20
New cards

Partial functional dependency

A functional dependency in which one or more nonkey attributes are functionally dependent on part (but not all) of the primary key.

21
New cards

Transitive dependency

A functional dependency between the primary key and one or more nonkey attributes that are dependent on the primary key via another nonkey attribute.

22
New cards

Synonyms

Two (or more) attributes that have different names but the same meaning.

23
New cards

Non-Loss Decompositions

Decomposing a relation in a way that a join operation should restore the original information.

24
New cards

Field

The smallest unit of application data recognized by system software.

25
New cards

Data type

A detailed coding scheme recognized by system software, such as a DBMS, for representing organizational data.

26
New cards

Denormalization

The process of transforming normalized relations into nonnormalized physical record specifications.

27
New cards

Horizontal partitioning

Distribution of the rows of a logical relation into several separate tables.

28
New cards

Vertical partitioning

Distribution of the columns of a logical relation into several separate physical tables.

29
New cards

Physical file

A named portion of secondary memory (such as a hard disk) allocated for the purpose of storing physical records.

30
New cards

Tablespace

A named logical storage unit in which data from one or more database tables, views, or other database objects may be stored.

31
New cards

Extent

A contiguous section of disk storage space.

32
New cards

File organization

A technique for physically arranging the records of a file on secondary storage devices.

33
New cards

Sequential file organization

The storage of records in a file in sequence according to a primary key value.

34
New cards

Indexed file organization

The storage of records either sequentially or nonsequentially with an index that allows software to locate individual records.

35
New cards

Index

A table or other data structure used to determine in a file the location of records that satisfy some condition.

36
New cards

Secondary key

One field or a combination of fields for which more than one record may have the same combination of values. Also called a nonunique key.

37
New cards

Pointer

A field of data indicating a target address that can be used to locate a related field or record of data.