Quiz 2.1 Flashcards
give the formal name for the following practical components of the relational model - Table
Relation
give the formal name for the following practical components of the relational model Column
Attribute
give the formal name for the following practical components of the relational model row
Tuple
Includes a name, data type, format, and in some special cases a unit of measurement is referred to as the logical definition of this.
Domain
For questions 5 & 6 please refer to the following denotation of the relation schema of R…
R(A1, A2, …, An)
What is “R” referred to as?
Relation name (Relation Schema)
For questions 5 & 6 please refer to the following denotation of the relation schema of R…
R(A1, A2, …, An)
What is “A1, A2, …, An” referred to as?
Ordered list of attributes
What is the degree (or arity) of the following relation schema for STUDENT?
STUDENT(Ssn, Name, DateOfBirth)
3
Which of the following describes the relation schema in general; Relatively Static or Constantly Changing?
Relatively Static
For questions 9 & 10 please refer to the following denotation of the relation state r of R…
r(R) = { t1, t2, …, tm }
t = < v1, v2, …, vn >
What is “{t1, t2, …, tm}” referred to as?
List of tuples
For questions 9 & 10 please refer to the following denotation of the relation state r of R…
r(R) = { t1, t2, …, tm }
t = < v1, v2, …, vn >
What must be true about the value v1 in terms of the dom(A1)?
It must be in the domain of A1.
Which of the following describes the relation state in general; Relatively Static or Constantly Changing?
Constantly changing
Give one downside of NULL values and the relational model regarding arithmetic aggregations and comparisons.
If we perform a query that compares the values of 2 tuples that are both null, then weird things happen: ie null is not necessarily = to null
State the key difference between the entity relationship and relational models in terms of how entities and relationships are represented in each (explain your answer).
In entity relationship model (entities, relationships), these are just relations in the relational model.
What assumption states that only true facts about the universe are present within the extension (state) of the relation(s)?
The closed world assumption.
Also known as model-based constraints, and are characterized by being inherent in the data model?
Implicit constraints.
Also known as explicit constraints, and can be directly expressed in the schemas of the data model, typically by specifying them in the data definition language (DDL)?
Schema-based
Also known as semantic constraints, and cannot be directly expressed in the schemas of the data model, hence they must be expressed and enforced by the application programs or in some other way?
Business rules
This type of schema-based constraint specifies that within each tuple t, the value v of each attribute A must be an atomic value from domain dom(A).
Domain constraint
This type of constraint can also be classified as what type of constraint (hint: It’s not schema-based)?
Model based
A subset of attributes S such that for tuples t1 and t2 the following invariant holds: t1[S] ≠ t2[S] is referred to as what?
Superkey
A subset of attributes S such that for tuples t1 and t2 the following invariant holds: t1[S] ≠ t2[S] is referred to as what?
This must always be true for which subset of attributes (according to the relational model)?
All the attributes
True or false, the set of attributes constituting a key is an attribute of the relation state r(R)?
False, of the schema.
When a relation schema has more than one key, one must be chosen to uniquely identify tuples. This is referred to as what special kind of key?
Primary key
A relational database schema S is a set of relation schemas S = { R1, R2, …, Rm } and what else?
Set of integrity constraints IC.