GateMCQSCIENTIFIC PREP LAB
PlanSign Up
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 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!
Quick 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!
Key Formulas Summary
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^+
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 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?

⚡ Click an option above to verify instantly
Q2GATE CS 2024 Set-2MCQMEDIUM
+2M • -0.67

Relation R(A,B,C,D,E)R(A, B, C, D, E) has Functional Dependencies F={AB→C,  C→D,  D→B,  D→E}F = \{AB \to C,\; C \to D,\; D \to B,\; D \to E\}. What are all Candidate Keys of RR, and what is the highest Normal Form satisfied by RR?

⚡ Click an option above to verify instantly
Q3GATE CS 2019 SQLMCQEASY
+1M • -0.33

Table R(a) contains 55 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
Previous TopicOS 2027 Rank-Decider: Hardware CAS/TestAndSet, Priority Inversion, Copy-on-Write & File I/ONext Topic Conflict Serializability (Precedence Graph) & B+ Tree Order Math