∑GateAndNet
Practice MCQs
GATE CS / Databases (DBMS)
Edit
INTERMEDIATE🔥 High-Yield Exam Topic 4 min read 5 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 RR is in 1NF — Atomic Attributes)

Let X→AX \to A be any non-trivial functional dependency (A∉XA \notin X):

Normal FormExact Condition on Every Non-Trivial FD X→AX \to AAlways Lossless Decomposition?Always Dependency Preserving?
2NFNo Partial Dependency (no proper subset of a Candidate Key determines a non-prime attribute)YesYes
3NFEither XX is a Superkey OR AA is a Prime Attribute (part of some Candidate Key)✅ Yes✅ Yes
BCNFXX MUST be a Superkey (zero exceptions!)✅ Yes❌ Not Always!
💡 Shortcut & Tip

Instant Shortcuts for Exam Hall:

  1. If every Candidate Key of RR is a single attribute (simple key), then RR is automatically in 2NF!
  2. Any 2-attribute relation R(A,B)R(A, B) is ALWAYS in BCNF!
📐 Quick Revision Formula Sheet
Binary Decomposition R -> (R1, R2) Lossless Join Condition
(R1∩R2→R1)∈F+OR(R1∩R2→R2)∈F+(R_1 \cap R_2 \to R_1) \in F^+ \quad \text{OR} \quad (R_1 \cap R_2 \to R_2) \in F^+
💡 Common attributes R1 cap R2 MUST be a superkey of R1 or R2!
#DBMS#Normalization#BCNF#3NF#Keys

🎯 Practice PYQs on This Topic (1)

Q1.GATE CS DBMS PYQMCQMEDIUM
+2 Marks • -0.67 Neg

Consider relation R(A,B,C,D)R(A, B, C, D) with functional dependencies F={AB→C,  C→D,  D→A}F = \{AB \to C,\; C \to D,\; D \to A\}. What is the highest Normal Form satisfied by RR?

Previous TopicPage Replacement (FIFO, LRU, Optimal), Unix Inodes & Disk Arm SchedulingNext Topic Conflict Serializability (Precedence Graph) & B+ Tree Order Math