Module 03a - Dependencies Flashcards

1
Q

Define Entity

A

Some identifiable thing that users want to track

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define Relation

A

Is a two-dimensional table that has the following characteristics:
Rows contain data about an entity.
Columns contain data about attributes of the 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.
The order of the columns is unimportant.
The order of the rows is unimportant.
No two rows may be identical.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define Functional Dependency

A

When the value of one (set of) attribute(s) determines the value of a second (set of) attribute(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define Determinant

A

Attribute on the left side of the functional dependency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Candidate Key

A

Is a key that determines all of the other columns in a relation.
If a relation has several candidate keys, one is chosen to be the primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define Composite Key

A

Is a key that consists of two or more columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define Primary Key

A

Is a candidate key selected as the primary means of identifying rows in a relation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define Surrogate Key

A

Is an artificial column added to a relation to serve as a primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define Foreign Key

A

Is the primary key of one relation that is placed in another relation to form a link between the relations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

3 Constraints

A

Domain integrity constraint
Entity integrity constraint
Referential integrity constraint
The purpose of these three constraints, taken as a whole, is to create database integrity, which means that the data in our database will be useful, meaningful data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define Normal Form

A

Database normalization (or normalisation) is the process of organizing the columns (attributes) and tables (relations) of a relational database to minimize data redundancy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define multivalued dependency

A

In database theory, a multivalued dependency is a full constraint between two sets of attributes in a relation.

In contrast to the functional dependency, the multivalued dependency requires that certain tuples be present in a relation. Therefore, a multivalued dependency is a special case of tuple-generating dependency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Alternative Terminology

A

Table - Column - Row
Relation - Tribute - Tuple
File - Field - Record

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Rules of Functional Dependency

A

If A –> (B, C), then A –> and A –> C

If (A,B) –> C, then neither A nor B determines C by itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Domain Integrity Constraint

A

Requirement that all of the values in a column are of the same kind

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Entity Integrity Constraint

A

Requirement that, in order to function properly, the primary key must have unique data values for every row in the table.
It means that this column is NOT NULL, and does not allow a NULL value in any row

17
Q

Referential Integrity Constraint

A

Statement that limits the values of the foreign key to those already existing as primary key values in the corresponding relation.