PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Second Normal Form (2NF): Eliminating Partial Dependencies (द्वितीय सामान्य रूप (2NF): आंशिक निर्भरता (Partial Dependency) निवारण) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: Second Normal Form (2NF) requires a 1NF relation to have zero Partial Functional Dependencies, ensuring every non-prime attribute depends on the entirety of every Candidate Key. Relations with only single-attribute Candidate Keys or zero non-prime attributes satisfy 2NF automatically.
अध्याय सार: द्वितीय सामान्य रूप (2NF) के लिए यह आवश्यक है कि 1NF टेबल में कोई भी आंशिक निर्भरता (Partial Dependency) न हो, अर्थात प्रत्येक नॉन-प्राइम कॉलम हर कैंडिडेट की के पूरे समूह पर निर्भर हो। यदि सभी कैंडिडेट की एक ही कॉलम की हों या कोई नॉन-प्राइम कॉलम न हो, तो टेबल स्वतः 2NF में होती है।
Second Normal Form (2NF): Eliminating Partial Dependencies: Detailed Notes & Architecture (द्वितीय सामान्य रूप (2NF): आंशिक निर्भरता (Partial Dependency) निवारण)
1. Prime vs Non-Prime Attributes & Partial Dependency Defined (प्राइम बनाम नॉन-प्राइम कॉलम और आंशिक निर्भरता की परिभाषा)
[EN] An attribute is called Prime (Key attribute) if it belongs to AT LEAST ONE Candidate Key of relation R; otherwise, it is Non-Prime. A Functional Dependency X -> Y is a Full Functional Dependency if removing any single attribute A from X breaks the determination ((X - {A}) does NOT determine Y). Conversely, X -> A is a Partial Dependency violating 2NF iff: (1) X is a proper subset of some Candidate Key (X ⊂ CK), AND (2) A is a Non-Prime attribute.
[HI] यदि कोई कॉलम रिलेशन R की कम से कम एक कैंडिडेट की (CK) का हिस्सा है, तो वह Prime (की एट्रिब्यूट) कहलाता है, अन्यथा Non-Prime कहलाता है। किसी निर्भरता X -> A को Partial Dependency तभी कहते हैं जब X किसी कैंडिडेट की का उचित उपसमुच्चय (Proper Subset: X ⊂ CK) हो और A एक Non-Prime कॉलम हो।
2. Formal 2NF Definition & Prime-Attribute Nuance (2NF की औपचारिक परिभाषा और प्राइम कॉलम अपवाद)
[EN] Relation R is in Second Normal Form (2NF) iff: (1) R is in 1NF, AND (2) NO non-prime attribute of R is partially dependent on ANY Candidate Key of R (equivalently, every non-prime attribute is fully functionally dependent on every Candidate Key). Crucially, watch a classic exam trap: if a proper subset of a Candidate Key determines a PRIME attribute (another key attribute, e.g., C -> B where CKs are AB and AC and D is non-prime), that FD does NOT violate 2NF!
[HI] टेबल R तभी 2NF में होती है जब वह 1NF में हो और किसी भी नॉन-प्राइम कॉलम की किसी भी कैंडिडेट की के आधे हिस्से पर आंशिक निर्भरता न हो। परीक्षा का महत्वपूर्ण अपवाद: यदि कैंडिडेट की का कोई हिस्सा किसी दूसरे Prime (की) कॉलम को निर्धारित करे, तो उससे 2NF नहीं टूटती (2NF केवल RHS में Non-Prime होने पर टूटती है)!
3. Automatic 2NF Shortcuts Tested in Competitive Exams (प्रतियोगी परीक्षाओं के लिए स्वतः 2NF शॉर्टकट नियम)
[EN] Two powerful shortcuts identify 2NF tables in seconds: (1) Single-Attribute Key Shortcut: If EVERY Candidate Key of R consists of a single attribute (no composite Candidate Keys exist), then R is AUTOMATICALLY in 2NF! Why? A 1-attribute key has no non-empty proper subset to form a partial dependency (though ∅ -> A is banned as constant). (2) All-Prime Shortcut: If R has ZERO non-prime attributes (every attribute belongs to some CK), then R is AUTOMATICALLY in 2NF (and even 3NF!).
[HI] दो शॉर्टकट से 2NF की पहचान तुरंत होती है: (1) यदि टेबल की सभी कैंडिडेट की केवल सिंगल कॉलम की हों (कोई कंपोजिट की न हो), तो 1NF टेबल स्वतः ही 2NF में होती है। (2) यदि टेबल के सभी कॉलम प्राइम हों (कोई नॉन-प्राइम कॉलम ही न हो), तो वह स्वतः 2NF व 3NF दोनों में होती है।
4. 2NF Decomposition Procedure & Residual Anomalies (2NF विभाजन विधि और शेष बची विसंगतियाँ)
[EN] To decompose a violating relation R into 2NF: extract each partial determinant X together with all attributes determined partially by X into a separate relation R1(X, ...) with Primary Key X, and retain X in the parent relation R2 = R - (partially dependent non-primes) as a Foreign Key. Because X is a Super Key of R1, 2NF decomposition is always Lossless Join and Dependency Preserving. However, 2NF STILL permits Transitive Dependencies among non-prime attributes (fixed next in 3NF).
[HI] 2NF में तोड़ने के लिए हर आंशिक निर्भरता X -> Y के लिए एक नई टेबल R1(X, Y) बनाकर X को उसकी प्राइमरी की बनाते हैं और मूल टेबल से Y हटाकर X को फॉरेन की रख लेते हैं। यह विभाजन लॉसलेस और डिपेंडेंसी प्रिजर्विंग होता है, लेकिन 2NF में अभी भी सकर्मक निर्भरता (Transitive Dependency) बची रह सकती है।
Syntax, Formula & Technical Example (Second Normal Form (2NF): Eliminating Partial Dependencies)
-- Unnormalized for 2NF: OrderItem(OrderID, ProdID, ProdName, UnitPrice, Qty)
-- Candidate Key = (OrderID, ProdID); Prime = {OrderID, ProdID}
-- FDs: (OrderID, ProdID) -> Qty [Full Dependency - OK]
-- ProdID -> ProdName, UnitPrice [PARTIAL Dependency! ProdID subset of CK]
-- 2NF Decomposition (Lossless & Dependency Preserving):
-- R1: Product(ProdID, ProdName, UnitPrice) -- PK: ProdID
-- R2: OrderItem(OrderID, ProdID, Qty) -- PK: (OrderID, ProdID), FK: ProdID
Second Normal Form (2NF): Eliminating Partial Dependencies Quick Reference & Comparison Table
| 2NF Concept / Rule | Formal Condition | Exam Shortcut / Impact |
|---|---|---|
| Prime Attribute | Member of at least one Candidate Key of R | Exempt from 2NF partial-dependency RHS check |
| Partial Dependency | Proper subset of CK -> Non-Prime attribute | Violates 2NF; e.g., ProdID -> ProdName with CK=(OrderID,ProdID) |
| Single-Attribute CK Rule | Every Candidate Key has length 1 (no composite CKs) | 1NF relation is AUTOMATICALLY in 2NF |
| All-Prime Attribute Rule | Every attribute of R belongs to some Candidate Key | Relation is AUTOMATICALLY in both 2NF and 3NF |
Second Normal Form (2NF): Eliminating Partial Dependencies Top 20 Bilingual MCQs with Answers
Q1. Which precise condition defines a Partial Dependency violating Second Normal Form (2NF)?
(द्वितीय सामान्य रूप (2NF) का उल्लंघन करने वाली आंशिक निर्भरता (Partial Dependency) की सटीक शर्त क्या है?)
(A) A Non-Prime attribute determines another Non-Prime attribute
(B) A Super Key determines a Prime attribute
(C) Every Candidate Key has only one column
(D) A proper subset of SOME Candidate Key functionally determines a Non-Prime attribute
Correct Answer: (D)
[EN] Partial Dependency requires X ⊂ CK (proper subset of any Candidate Key) AND RHS attribute A to be Non-Prime.
[HI] जब किसी भी कैंडिडेट की का एक छोटा हिस्सा (Proper Subset) किसी Non-Prime कॉलम को निर्धारित करे, तो यह 2NF तोड़ने वाली Partial Dependency है।
Q2. If a 1NF relation R has ONLY single-attribute Candidate Keys (no composite Candidate Keys), what is guaranteed?
(यदि किसी 1NF रिलेशन की सभी कैंडिडेट की केवल सिंगल कॉलम (1 Attribute) की हैं, तो क्या स्वतः सुनिश्चित होता है?)
(A) R has zero Functional Dependencies
(B) R is automatically in BCNF
(C) R violates 2NF immediately
(D) R is AUTOMATICALLY in 2NF
Correct Answer: (D)
[EN] A 1-attribute Candidate Key has no non-empty proper subset, making Partial Dependency mathematically impossible (though 3NF may still fail via transitive dependencies!).
[HI] एक-कॉलम वाली कैंडिडेट की का कोई अरिक्त उपसमुच्चय नहीं बन सकता, इसलिए ऐसी टेबल स्वतः 2NF में होती है (हालांकि इसमें 3NF टूट सकती है)।
Q3. Given R(A, B, C, D) with F = {AB -> C, B -> D}. Find the Candidate Key and determine the highest normal form.
(R(A, B, C, D) व F = {AB -> C, B -> D} के लिए कैंडिडेट की ज्ञात कर उच्चतम नॉर्मल फॉर्म बताइए।)
(A) CK = B; in 3NF
(B) CK = AB; in BCNF
(C) CK = AB; in 2NF
(D) CK = AB; in 1NF ONLY (violates 2NF because B -> D is a partial dependency)
Correct Answer: (D)
[EN] A and B never appear on RHS, so AB is the unique CK ({AB}+ = ABCD). Non-prime D depends solely on B (proper subset of AB), breaking 2NF!
[HI] A और B किसी RHS में नहीं हैं अतः एकमात्र CK = AB है; नॉन-प्राइम D केवल B (CK के आधे भाग) पर निर्भर है—इसलिए 2NF टूटती है और यह केवल 1NF में है।
Q4. Given R(A, B, C, D) with F = {AB -> CD, C -> B}. Find ALL Candidate Keys and test 2NF!
(R(A, B, C, D) और F = {AB -> CD, C -> B} के लिए सभी कैंडिडेट की और 2NF स्थिति जांचिए।)
(A) CK = AB only; violates 2NF due to C -> B
(B) CKs = {AB, AC}; violates 2NF due to C -> B
(C) CKs = {AB, AC}; in BCNF
(D) CKs = {AB, AC}; R IS in 2NF (because C -> B determines B, which is a PRIME attribute!)
Correct Answer: (D)
[EN] A is missing from RHS; AB+=ABCD and AC+=ABCD, so Prime = {A,B,C} and Non-Prime = {D}. Only D is non-prime and depends fully on AB and AC; C->B has prime RHS B so 2NF holds!
[HI] यहाँ CKs = {AB, AC} हैं, Prime = {A,B,C} और Non-Prime केवल D है। C->B में बायाँ हिस्सा C तो AC का भाग है पर दायाँ हिस्सा B एक Prime कॉलम है—इसलिए 2NF मान्य है!
Q5. In relation R(A, B, C, D) with Candidate Keys {A} and {BC}, which attributes are Non-Prime?
(R(A, B, C, D) में यदि कैंडिडेट की {A} और {BC} हैं, तो कौन से कॉलम Non-Prime हैं?)
(A) Only {D}
(B) {D} and {A}
(C) {B, C, D}
(D) None; all are Prime
Correct Answer: (A)
[EN] Prime attributes are the union of ALL Candidate Keys: {A} ∪ {B, C} = {A, B, C}. Only D belongs to no Candidate Key!
[HI] सभी कैंडिडेट की का यूनियन {A, B, C} प्राइम कॉलम हैं; केवल D किसी भी CK में नहीं आता अतः वही Non-Prime है।
Q6. In the SAME relation R(A, B, C, D) with CKs {A} and {BC}, if B -> D holds, does R satisfy 2NF?
(उसी टेबल R(A, B, C, D) जिसमें CKs = {A, BC} हैं, यदि B -> D सत्य हो तो क्या यह 2NF में है?)
(A) NO — B is a proper subset of Candidate Key BC and D is Non-Prime, violating 2NF!
(B) YES — because D is not part of A
(C) YES — because A is a single-attribute Candidate Key
(D) YES — because B is Prime
Correct Answer: (A)
[EN] 2NF requires EVERY non-prime attribute to have NO partial dependency on ANY Candidate Key! Even though A is single-attribute, BC is composite and B -> D breaks 2NF.
[HI] नहीं — 2NF के नियम से किसी भी कैंडिडेट की के आधे भाग पर नॉन-प्राइम निर्भर नहीं होना चाहिए; यहाँ B ⊂ BC और D नॉन-प्राइम होने से 2NF टूटती है!
Q7. Given R(A, B, C, D) with F = {AB -> C, C -> D}, what is its highest normal form?
(R(A, B, C, D) और F = {AB -> C, C -> D} के लिए इस रिलेशन का उच्चतम नॉर्मल फॉर्म क्या है?)
(A) 1NF only
(B) 2NF (no partial dependencies, but C -> D is a transitive dependency violating 3NF)
(C) 3NF
(D) BCNF
Correct Answer: (B)
[EN] Unique CK is AB; Prime={A,B}; Non-Prime={C,D}. Neither A->C/D nor B->C/D holds (no partial dep -> 2NF holds!), yet C->D is transitive -> fails 3NF.
[HI] एकमात्र CK = AB है और A या B अकेले C या D को तय नहीं करते (2NF पास!), पर C -> D एक सकर्मक निर्भरता है जिससे 3NF टूटती है—अतः उच्चतम रूप 2NF है।
Q8. What does 'Full Functional Dependency' X -> Y formally mean?
('पूर्ण कार्यात्मक निर्भरता' (Full Functional Dependency) X -> Y का सटीक अर्थ क्या है?)
(A) X -> Y holds AND NO proper subset Z ⊂ X satisfies Z -> Y
(B) X contains every attribute in R
(C) Y is always a Prime attribute
(D) X -> Y holds AND Y -> X also holds
Correct Answer: (A)
[EN] Removing even a single attribute from X destroys the dependency on Y—making X minimal for determining Y.
[HI] X -> Y के साथ X के किसी भी छोटे उपसमुच्चय से Y निर्धारित न हो सके, अर्थात X का हर कॉलम Y को तय करने में अनिवार्य हो।
Q9. Suppose Table Enrollment(Sid, Cid, Sname, Cname, Marks) has PK (Sid, Cid). Which FDs violate 2NF?
(Enrollment(Sid, Cid, Sname, Cname, Marks) में PK = (Sid, Cid) है। इसमें कौन सी FDs 2NF का उल्लंघन करती हैं?)
(A) Sid -> Sname and Cid -> Cname (Partial Dependencies)
(B) All three FDs violate 2NF
(C) Sid -> Sid
(D) (Sid, Cid) -> Marks
Correct Answer: (A)
[EN] Both Sname (depends only on Sid) and Cname (depends only on Cid) depend on half of the composite key (Sid, Cid).
[HI] यहाँ Sname केवल Sid पर और Cname केवल Cid पर निर्भर है—दोनों कंपोजिट की (Sid, Cid) के आधे हिस्से पर निर्भर होकर 2NF तोड़ती हैं।
Q10. After decomposing Enrollment(Sid, Cid, Sname, Cname, Marks) into 2NF tables, which tables are created?
(उपर्युक्त Enrollment टेबल को 2NF में विभाजित करने पर कौन सी शुद्ध टेबल्स बनेंगी?)
(A) Student(Sid, Sname), Course(Cid, Cname), and Enrollment(Sid, Cid, Marks)
(B) Student(Sid, Cid) and Marks(Sname, Cname)
(C) Single table StudentCourse(Sid, Sname, Cname)
(D) Enrollment(Sid, Sname, Cname) and Marks(Cid, Marks)
Correct Answer: (A)
[EN] Each partial dependency moves to its own determinant-keyed entity table, leaving full-key Marks inside Enrollment.
[HI] आंशिक निर्भरता वाले कॉलम अलग Student(Sid, Sname) व Course(Cid, Cname) टेबल्स में जाएंगे और पूर्ण-की पर निर्भर Marks, Enrollment में रहेगा।
Q11. Is 2NF decomposition always both Lossless Join AND Dependency Preserving?
(क्या 2NF में किया गया विभाजन हमेशा लॉसलेस-जॉइन और डिपेंडेंसी प्रिजर्विंग दोनों होता है?)
(A) Dependency Preserving only, always Lossy
(B) Lossless only, loses all FDs
(C) Neither property holds in 2NF
(D) Yes — moving partial dependency X -> Y into R1(X,Y) keeps X as PK of R1 (Lossless) and keeps X -> Y intact
Correct Answer: (D)
[EN] Because X stays in both R1 and the remaining relation and forms a Super Key of R1, both Lossless Join and Dependency Preservation always hold.
[HI] हाँ — क्योंकि X नई टेबल की प्राइमरी की बनता है और मूल टेबल में भी रहता है, जिससे लॉसलेस-जॉइन व डिपेंडेंसी दोनों सुरक्षित रहती हैं।
Q12. Given a 1NF relation R(A, B, C) with F = {AB -> C, A -> C}, identify the true Candidate Key and whether R satisfies 2NF.
(यदि 1NF रिलेशन R(A, B, C) में F = {AB -> C, A -> C} हो, तो इसकी सही कैंडिडेट की और 2NF की स्थिति क्या होगी?)
(A) True CK is A; R satisfies BCNF
(B) True CK is AB; R satisfies 2NF
(C) True CK is BC; R satisfies 3NF
(D) True CK is AB (since A+ = AC misses B); A -> C is a Partial Dependency violating 2NF!
Correct Answer: (D)
[EN] Careful trace: A+ = {A, C} (missing B!), B+ = {B}, AB+ = {A, B, C}. So CK = AB, Non-Prime = {C}, and A -> C is a partial dependency violating 2NF!
[HI] सावधानी से जांचें: A+ = {A, C} (B नहीं मिला!) अतः CK = AB ही है; और A -> C (जहाँ A ⊂ AB व C नॉन-प्राइम है) सीधे 2NF को तोड़ती है।
Q13. Can a 2NF table still suffer from Update, Insertion, and Deletion anomalies?
(क्या 2NF में मौजूद टेबल में भी Insertion, Deletion और Update एनोमलीज आ सकती हैं?)
(A) Only if Primary Key is composite
(B) Only Insertion Anomaly can exist in 2NF
(C) Yes — whenever a non-prime attribute transitively determines another non-prime attribute (e.g., EmpID -> DeptID -> DeptName)
(D) No — 2NF removes all anomalies
Correct Answer: (C)
[EN] For instance, Employee(EmpID, DeptID, DeptName) has a 1-column key (so it's in 2NF!) yet repeats DeptName per employee until 3NF splits it.
[HI] हाँ — यदि एक नॉन-प्राइम कॉलम दूसरे नॉन-प्राइम कॉलम को निर्धारित करे (सकर्मक निर्भरता), जैसे EmpID -> DeptID -> DeptName, तो 2NF में भी एनोमलीज बनी रहती हैं।
Q14. Which condition guarantees a relation is AUTOMATICALLY in both 2NF AND 3NF regardless of FDs?
(कौन सी शर्त यह सुनिश्चित करती है कि कोई 1NF रिलेशन बिना किसी अपवाद के स्वतः 2NF और 3NF दोनों में है?)
(A) R contains a Foreign Key
(B) R has at least 5 attributes
(C) Every attribute in R is a Prime Attribute (zero Non-Prime attributes exist)
(D) Every FD has a 2-attribute LHS
Correct Answer: (C)
[EN] Both 2NF (partial onto non-prime) and 3NF (non-superkey onto non-prime) can ONLY be violated by a Non-Prime attribute on the RHS!
[HI] जब रिलेशन में कोई भी Non-Prime कॉलम हो ही न (सभी कॉलम Prime हों), तो 2NF और 3NF दोनों का उल्लंघन असंभव है (हालांकि BCNF फिर भी टूट सकती है)।
Q15. Which statement is NOT true about Second Normal Form (2NF)?
(द्वितीय सामान्य रूप (2NF) के संबंध में कौन सा कथन असत्य (NOT true) है?)
(A) 2NF eliminates Partial Dependencies of non-prime attributes on Candidate Keys
(B) Every 2NF relation must already be in 1NF
(C) If a proper subset of a Candidate Key determines a Prime attribute, the table violates 2NF
(D) A relation with only single-attribute Candidate Keys is always in 2NF
Correct Answer: (C)
[EN] 2NF strictly checks ONLY Non-Prime attributes on the RHS; a partial subset determining a Prime attribute does NOT violate 2NF (nor 3NF!).
[HI] यह असत्य है कि CK का भाग किसी Prime कॉलम को तय करे तो 2NF टूटती है—2NF केवल Non-Prime कॉलम की आंशिक निर्भरता पर ही भंग होती है।
Q16. How many Candidate Keys minimum must a table have to POSSIBLY violate 2NF?
(किसी 1NF टेबल में 2NF का उल्लंघन होने के लिए कम से कम एक कैंडिडेट की की न्यूनतम लंबाई कितनी होनी चाहिए?)
(A) At least 3 Candidate Keys must exist
(B) Zero Candidate Keys
(C) At least one Candidate Key must be composite (have >= 2 attributes)
(D) All Candidate Keys must be length 1
Correct Answer: (C)
[EN] A 1-attribute Candidate Key has no non-empty proper subset, so 2NF violation requires at least one composite Candidate Key (length >= 2) plus >= 1 non-prime attribute.
[HI] 2NF टूटने के लिए कम से कम एक कंपोजिट कैंडिडेट की (2 या अधिक कॉलम वाली) तथा कम से कम एक नॉन-प्राइम कॉलम होना आवश्यक है।
Q17. Within Second Normal Form (2NF): Eliminating Partial Dependencies, which 2nf concept / rule directly maps to: "Member of at least one Candidate Key of R"?
(Second Normal Form (2NF): Eliminating Partial Dependencies में कौन सा 2NF Concept / Rule सीधे "Member of at least one Candidate Key of R" से संबंधित है?)
(A) All-Prime Attribute Rule
(B) Single-Attribute CK Rule
(C) Prime Attribute
(D) Partial Dependency
Correct Answer: (C)
[EN] In Second Normal Form (2NF): Eliminating Partial Dependencies, 'Prime Attribute' handles 'Member of at least one Candidate Key of R' (Exempt from 2NF partial-dependency RHS check).
[HI] Second Normal Form (2NF): Eliminating Partial Dependencies में 'Prime Attribute' का कार्य/विवरण 'Member of at least one Candidate Key of R' (Exempt from 2NF partial-dependency RHS check) है।
Q18. Which option accurately describes 'Partial Dependency' in Second Normal Form (2NF): Eliminating Partial Dependencies?
(Second Normal Form (2NF): Eliminating Partial Dependencies के संदर्भ में 'Partial Dependency' की सही विशेषता कौन सी है?)
(A) Member of at least one Candidate Key of R
(B) Proper subset of CK -> Non-Prime attribute
(C) Every attribute of R belongs to some Candidate Key
(D) Every Candidate Key has length 1 (no composite CKs)
Correct Answer: (B)
[EN] 'Partial Dependency' provides 'Proper subset of CK -> Non-Prime attribute' — key point: Violates 2NF; e.g., ProdID -> ProdName with CK=(OrderID,ProdID).
[HI] 'Partial Dependency' का मुख्य विवरण 'Proper subset of CK -> Non-Prime attribute' है (Violates 2NF; e.g., ProdID -> ProdName with CK=(OrderID,ProdID))।
Q19. In Second Normal Form (2NF): Eliminating Partial Dependencies, identify the correct parameter for the specification: "Every Candidate Key has length 1 (no composite CKs)".
(Second Normal Form (2NF): Eliminating Partial Dependencies में "Every Candidate Key has length 1 (no composite CKs)" विवरण किस विकल्प के लिए सही है?)
(A) Prime Attribute
(B) Partial Dependency
(C) Single-Attribute CK Rule
(D) All-Prime Attribute Rule
Correct Answer: (C)
[EN] 'Single-Attribute CK Rule' corresponds to 'Every Candidate Key has length 1 (no composite CKs)' (1NF relation is AUTOMATICALLY in 2NF).
[HI] 'Single-Attribute CK Rule' का संबंध 'Every Candidate Key has length 1 (no composite CKs)' (1NF relation is AUTOMATICALLY in 2NF) से है।
Q20. Considering Second Normal Form (2NF): Eliminating Partial Dependencies, what key behavior defines 'All-Prime Attribute Rule'?
(Second Normal Form (2NF): Eliminating Partial Dependencies में 'All-Prime Attribute Rule' की मुख्य भूमिका या मान क्या है?)
(A) Proper subset of CK -> Non-Prime attribute
(B) Every attribute of R belongs to some Candidate Key
(C) Every Candidate Key has length 1 (no composite CKs)
(D) Member of at least one Candidate Key of R
Correct Answer: (B)
[EN] 'All-Prime Attribute Rule' represents 'Every attribute of R belongs to some Candidate Key' (Relation is AUTOMATICALLY in both 2NF and 3NF).
[HI] 'All-Prime Attribute Rule' का अर्थ/मान 'Every attribute of R belongs to some Candidate Key' है (Relation is AUTOMATICALLY in both 2NF and 3NF)।
Second Normal Form (2NF): Eliminating Partial Dependencies — Exam FAQs
Q1: Why is a table with a single-column Primary Key NOT automatically safe from ALL anomalies if it's in 2NF?
सिंगल-कॉलम प्राइमरी की वाली टेबल 2NF में होने के बावजूद सभी एनोमलीज से सुरक्षित क्यों नहीं होती?
[EN] A single-column key only prevents Partial Dependencies (satisfying 2NF), whereas Transitive Dependencies between non-key columns (like EmpID -> DeptID -> DeptLocation) can still cause full Insertion, Deletion, and Update anomalies until 3NF is achieved.
[HI] सिंगल-कॉलम की केवल आंशिक निर्भरता रोककर 2NF पूरा करती है, पर दो नॉन-की कॉलम्स के बीच सकर्मक निर्भरता (जैसे EmpID -> DeptID -> DeptLocation) से एनोमलीज 3NF तक बनी रहती हैं।
Q2: Does Partial Dependency check apply only to the chosen Primary Key or to ALL Candidate Keys?
क्या आंशिक निर्भरता (Partial Dependency) की जांच केवल चुनी गई प्राइमरी की पर होती है या सभी कैंडिडेट कीज़ पर?
[EN] It MUST be checked against ALL Candidate Keys of the relation! Even if your Primary Key has 1 column, a partial dependency on another composite Candidate Key violates 2NF.
[HI] यह जांच टेबल की सभी कैंडिडेट कीज़ (Candidate Keys) पर होती है! यदि प्राइमरी की 1 कॉलम की हो पर कोई दूसरी कंपोजिट कैंडिडेट की हो, तो उस पर भी आंशिक निर्भरता नहीं होनी चाहिए।
Q3: What if a proper subset of a Candidate Key determines another Prime attribute?
यदि किसी कैंडिडेट की का आधा भाग किसी दूसरे Prime (की) कॉलम को निर्धारित करे तो क्या 2NF भंग होगी?
[EN] No! Both 2NF and 3NF explicitly exempt Prime attributes on the RHS. Only Non-Prime attributes on the RHS can cause a 2NF or 3NF violation (BCNF closes that loophole).
[HI] नहीं! 2NF और 3NF दोनों ही Prime कॉलम्स पर निर्भरता की छूट देते हैं; 2NF/3NF केवल Non-Prime कॉलम्स के RHS में होने पर ही टूटती हैं।
Post a Comment
Post a Comment