Week 4 Flashcards
What is the domain in a relational model?
Range of the values in a column; the data type of the attribute
What is a tuple in a relational model?
The data in a row
What is a attribute in a relational model?
The name of the columns
What is a relation in a relational model?
The ‘table’ (NOT EXACTLY)
What are the relation components?
- Relation schema (the NAME of the relation)
2. Relation body (the attributes of the relation)
What are the relation components?
- Relation schema (the NAME of the relation)
2. Relation body (the attributes of the relation)
Whats the difference between a relation and a table?
Main difference is that in a table, data can be input freely
In a relation, tuples (rows) are unique
What is the degree and cardinality of a relation relational model?
Degree = number of attributes (columns) Cardinality = number of tuples (rows)
What is a primary key in a relational model?
This uniquely identifies a tuple in a relation
What is a foreign key?
This shows the relationship between two relations
What is a candidate/minimal key?
A super key that does not contain a subset of any other super key
What is normalisation?
A process that ssigns attributes to entities so that data redundancies are reduced or elimatnted.
What are the stages of normalisation?
- First normal form (1NF)
- Second normal form (2NF)
- Third normal form (3NF)
- Fourth normal form (4NF)
What is denormalisation? Why necessary sometimes?
The process of lowering the stage of a normal form.
Required to sometimes meet performance requirements as lower forms have greater performance but greater redundancies.
What is the prime attribute?
A key attribute that is an attribute that is a part of a key or is the whole key.