Chapter 2 Revision: Relational Model
The relational model formalizes database management through first-order predicate logic and mathematical set theory, representing data as tuples within relations and providing formal query algebras that guarantee declarative data manipulation.
Use these flashcards for active recall. Try to answer the question out loud before clicking the card to flip it.
Flashcards 🎴
What is the difference between Relation Degree and Relation Cardinality?
• Cardinality: The total number of tuples (rows) currently stored in the relation state/instance.
How do Superkeys, Candidate Keys, and Primary Keys relate hierarchically?
• Candidate Key: A minimal superkey (no proper subset is a superkey).
• Primary Key: The chosen candidate key selected by the database designer to identify tuples permanently.
What are the Entity Integrity and Referential Integrity rules?
• Referential Integrity: A foreign key must either be NULL or match an existing primary key value in the referenced relation.
What are the six fundamental operators of Relational Algebra?
2. Projection (π): Vertical column extraction with duplicate elimination.
3. Union (∪): Combines tuples from union-compatible relations.
4. Set Difference (-): Tuples in R that are not in S.
5. Cartesian Product (×): Pairs all tuples of R with all tuples of S.
6. Rename (ρ): Renames relations and attribute names.
What is the strict condition for Boyce-Codd Normal Form (BCNF)?