Lesson 2.4: Basics of the Relational Model Flashcards
The relational model gives us a single way to represent data: as a two-dimensional table called a
relation.
The columns of a relation are named by
Attributes
attributes appear at the
top of the columns
The name of a relation and the set of attributes for a relation is called the ____ for that relation.
schema
The attributes in a relation schema are a ___, not a list.
set
In the relational model, a database consists of one or more relations. The set of schemas for the relations of a database is called a _____ or just a __________-
relational database schema, or just a database schema.
the rows of a relation, other than the header row containing the attribute names
tuples
We shall generally follow the convention that relation names begin with a _______, and attribute names begin with a ______.
capital letter
lower-case letter
t/f Relations are set of tuples, not lists of tuples
true
t/f it is not possible to reorder the attributes of the relation
false.
Moreover, we can reorder the attributes of the relation as we choose, without changing the relation.
However, when we reorder the relation schema, we must be careful to remember that the attributes are column headers.
t/f relations change over time
true
A set of attributes forms a key for a relation if we do not allow two tuples in a relation instance to have the same values in all the attributes of the key.
key constraints