Rob & Coronell - Chapter 3.1 + 3.2 Flashcards
How does the relational model enable you to view data?
In a logical way instead of in a physical way.
-> It focusses on entities and their relationships as opposed to the physical way of storing data.
What is a table?
- A two-dimensional structure composed of rows and collumns
- It contains a group of related entity occurrences
What does a tuple / table row represent?
A sinle entity occurrence within the enitity set
What does each table column represent?
An attribute, each with a distinct name
What does each row and column intersection represent?
A single data value
What is the attribute domain in a relational table?
The specific range of values related to each column
What are four characteristics of a relational table?
- All value 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 of the rows and columns is immaterial to the DBMS
- Each table must have an attribute or combination of attributes that uniquely identifies each row
What is a key in a relational database?
A key consists of one or more attributes that determine other attributes.
Why are keys important in a relational database?
- They are used to ensure that each row in a table is uniquely identifiable.
- They are used to establish relationships among tables and to ensure the integrity of the data.
What is the primary key?
An attribute, or combination of multiple attributes, that uniquely identifies any given row.
–> The candidate key chosen to be the unique row identifier.
What is meant by determination?
If you know the value of attribute A, you can look up the value of attribute B.
Notation A –> B
In case it determines more attributes:
A –> B, C, D
What is functional dependence?
Attribute A determines attribute B (that is, B is functionally dependent on A) if all of the rows in the table that agree in value for attribute A also agree in value for attribute B.
What is a composite key?
If a key is composed of more than one attribute
What is a key attribute?
Any attribute that is part of a key
What is full functional dependence?
If the attribute (B) is functionally dependent on a composite key (A) but not on any subset of that composite key, the attribute (B) is fully functionally dependent on (A).