Chapter 3 Flashcards
What are the properties of a relation?
A table is a two-dimensional structure with rows and columns.
Each row represents a single entity occurrence, and all rows must be unique.
Each column represents an attribute with a distinct name.
Each cell contains a single atomic value.
All values in a column must be of the same data type.
Each column has a defined range of values, called the domain.
The order of the rows and columns doesn’t matter.
Each table must have a unique identifier for each row.
What are the 2 most important properties of the relational model?
Degree - number of its attributes.
Cardinality - number of its tuples.
What is a composite key?
It is a key composed with more than one attribute.
What is a superkey?
It is any key that uniquely identifies each row.
What is a candidate key?
It is a super key without any redundancies, a minimal super key
What is a primary key?
Unique identifier for each row in a database table.