7/8 Relational Design Flashcards
(41 cards)
What is the first step in designing a database?
Common sense and intuition of DB designer
What does an ER schema represent?
Entity-Relationship diagram showing entities, their attributes, and relationships
What must an ER diagram be transformed into?
Tables with rows and columns
Is there a final rule for perfect attribute grouping?
No final rule for perfect attribute grouping
What are the two levels of theory to improve relational schema?
- Logical level
- Storage level
What is a Functional Dependency (FD)?
Relationship between two sets of attributes in a table
What does a functional dependency tell us?
If we know the value of one attribute, we can uniquely determine the value of another attribute
Provide an example of a functional dependency.
SSN determines Name
What is a super key?
Set of attributes in a relation that uniquely identifies each tuple
What does the functional dependency X → Y imply?
If two rows have the same values for attributes in X, they must also have the same values for attributes in Y
What is a candidate key?
A super key with no subset Y of K such that Y → U
What ensures that data in a relation follows certain rules?
Specifying Functional Dependencies (FD’s)
What makes a functional dependency trivial?
The right hand side is already included in the left hand side
What symbol is used for a logically implied FD?
|=
What does F+ represent?
The set of functional dependencies logically implied by F
What is Armstrong’s Reflexivity Rule?
If X ⊆ Y, then Y → X
What is the Augmentation Rule in functional dependencies?
If X → Y and Z is a set of attributes then XZ → YZ
What does the Union Rule state?
If X → Y and X → Z then X → YZ
What is a minimal cover set denoted by?
F’
What are the criteria for a set of FDs to be minimal?
- Each FD has one attribute on the right
- No FD can be removed without changing the meaning
- No attribute on the left side is unnecessary
How can you determine if AG is a super key?
If AG+ contains all attributes in the relation
What is the closure of an attribute set?
All the attributes that can be figured out from attribute (X) given the set of FDs
What does it mean if X+ includes all attributes?
X is a super key
What is the difference between a super key and a key?
A key is the smallest possible super key