INTERMEDIATEFrequently Tested 4 min read 28 views
Functional Dependencies, Candidate Keys & Normalization (1NF–BCNF)
Attribute closure algorithm, prime vs non-prime attributes, exact definitions of 2NF/3NF/BCNF, and lossless join test.
Normal Forms Checklist (Assume is in 1NF — Atomic Attributes)
Let be any non-trivial functional dependency ():
| Normal Form | Exact Condition on Every Non-Trivial FD | Always Lossless Decomposition? | Always Dependency Preserving? |
|---|---|---|---|
| 2NF | No Partial Dependency (no proper subset of a Candidate Key determines a non-prime attribute) | Yes | Yes |
| 3NF | Either is a Superkey OR is a Prime Attribute (part of some Candidate Key) | ✅ Yes | ✅ Yes |
| BCNF | MUST be a Superkey (zero exceptions!) | ✅ Yes | ❌ Not Always! |
Quick Tip
Instant Shortcuts for Exam Hall:
- If every Candidate Key of is a single attribute (simple key), then is automatically in 2NF!
- Any 2-attribute relation is ALWAYS in BCNF!
Key Formulas Summary
Binary Decomposition R -> (R1, R2) Lossless Join Condition
Note: Common attributes R1 cap R2 MUST be a superkey of R1 or R2!
#DBMS#Normalization#BCNF#3NF#Keys
Practice Questions on This Chapter (3)
Q1GATE CS DBMS PYQMCQMEDIUM
+2M • -0.67
Consider relation with functional dependencies . What is the highest Normal Form satisfied by ?
⚡ Click an option above to verify instantly
Q2GATE CS 2024 Set-2MCQMEDIUM
+2M • -0.67
Relation has Functional Dependencies . What are all Candidate Keys of , and what is the highest Normal Form satisfied by ?
⚡ Click an option above to verify instantly
Q3GATE CS 2019 SQLMCQEASY
+1M • -0.33
Table R(a) contains rows: (1), (2), (3), (NULL), (NULL). What integer count is returned by SELECT COUNT(*), COUNT(a) FROM R;?
⚡ Click an option above to verify instantly