Relational Databases
8 important questions on Relational Databases
How can a binary 1:1 relationship type be mapped?
How can a binary 1:N relationship type be mapped?
The foreign key refers to the primary at the 1 side. Depending upon the minimum cardinality, the foreign key can be declares as NOT NULL or NULL allowed. The attribute types of the relation can be added to the one with the foreign key
How can unary relationship types be mapped?
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
How can n-ary relationship types be mapped?
How can multivalued attribute types be mapped?
How can a weak entity type be mapped?
Overview ER vs Relational model?
Weak entity = Foreign key
1:1 or 1:N = Foreign key
M:N = new relation with 2 foreigns
N-ary = new relation with N foreigns
Simple attribute = attribute
Composite attribute = component attribute
Multivalued attribute = Relation and foreign
Key attribute = primary or alternative
Add type or key at end of words :))
How can an EER specialization be mapped?
- create a relation for the superclass and each subclass and link them with foreign keys
- create a relation for each subclass and none for the superclass
- create one relation with all attribute types of the super and subclasses and add a special attribute type.
LOOK AT SLIDES/VID FOR FURTHER EXPLANATION. Slides sucken a niffo
The question on the page originate from the summary of the following study material:
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding