Ch 3 Flashcards
Characteristics of a relational table
- A table is perceived as a two-dimensional structure composed of rows and columns.
- Each table row (tuple) represents a single entity occurrence within the entity set.
- Each table column represents an attribute, and each column has a distinct name.
- Each intersection of a row and column represents a single data value.
- All values in a column must conform to the same data format.
- Each column has a specific range of values known as the attribute domain.
- The order or rows and columns is immaterial to the DBMS.
- Each table must have an attribute or combination of attributes that uniquely identifies each row.
Domain
The column’s range of permissible values is known as its domain.
Primary key
Each table must have a primary key. In general terms, the primary key is an attribute or combination of attributes that uniquely identifies any given row.
Key
A key consists of one or more attributes that determine other attributes.
Determination
Determination is the state in which knowing the value of one attribute makes it possible to determine the value of another.
Functional dependence
Functional dependence means that the value of one or more attributes determines the value of one or more other attributes.
Determinant
In functional dependence, the attribute whose value determines another is called the determinant or the key.
Dependent
In functional dependence, the attribute whose value is determined by the other attribute is called the dependent.
Full functional dependence
Full functional dependence is used to refer to functional dependencies in which the entire collection of attributes in the determinant is necessary for the relationship.
Composite key
A composite key is a key that is composed of more than one attribute.
Key attribute
An attribute that is part of a key is called a key attribute.
Superkey
A superkey is a key that can uniquely identify any row in the table. In other words, a superkey functionally determines every attribute in the row.
Candidate key
A candidate key is a minimal superkey, i.e. a superkey without any unnecessary attributes.
Entity integrity
Entity integrity is the condition in which each row (entity instance) in the table has its own unique identity. To ensure entity integrity, the primary key has two requirements:
- All of the values in the primary keys must be unique.
- No key attribute in the primary key can contain null.
Null
A null is the absence of any data value.