GATE / CS ARCHIVE

SUBJECT COLLECTION

Database Management Systems · Normalization & Decomposition

37 questions, newest first

GATE CSE has asked 37 questions on Normalization & Decomposition (Database Management Systems) from 1992 to 2026, in 28 of the 46 papers; the most recent is in GATE CSE 2026 Set 1. In the last five years it carried 0.9 marks per 100-mark paper on average, against 0.9 since 2003. Since 2014 the questions have been 7 MCQ and 4 MSQ. 2 groups of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
1 mark · MSQ
Report issue

Dependency preservation across normal forms

Normalization & Decomposition

Question 31, GATE 2026: Choose the true normalization claims: A dependency-preserving 3NF decomposition is always possible; B dependency-preserving 1NF decomposition is always possible; C dependency-preserving BCNF decomposition is not always possible; D dependency-preserving 2NF decomposition is not always possible.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, C

Givens and goal

Choose the true normalization claims: A dependency-preserving 3NF decomposition is always possible; B dependency-preserving 1NF decomposition is always possible; C dependency-preserving BCNF decomposition is not always possible; D dependency-preserving 2NF decomposition is not always possible.

Approach

Use the constructive 3NF existence result for weaker forms, and a specific dependency set to demonstrate the BCNF limitation.

Step-by-step solution

1. The 3NF synthesis construction can always produce a dependency-preserving 3NF decomposition for a relation and its functional dependencies. It starts from a minimal cover, groups appropriate determinants with their dependents, and includes a candidate-key relation if needed for losslessness. Thus A is true.
2. Since a relation in 3NF also satisfies 2NF and 1NF, the same dependency-preserving decomposition supplies existence witnesses for both lower normal forms. Hence B is true and the assertion of possible failure at 2NF in D is false.
3. BCNF does not always permit dependency preservation. For an explicit witness, consider R(A,B,C) with AB → C and C → B. Its candidate keys are AB and AC. The dependency C → B violates BCNF because C does not determine A.
4. Any BCNF decomposition must use proper subrelations rather than retaining all of ABC. Among proper subrelations, the only essential nontrivial projected dependency is C → B on BC; the projections on AB and AC contain no nontrivial dependencies. Thus the union of all available proper projections cannot imply AB → C: under that union, the closure of AB never acquires C. No collection of those BCNF components can preserve the original dependencies. This proves C.

Common error: A lossless BCNF decomposition does not automatically preserve every dependency. Losslessness and dependency preservation are separate requirements.

In the BCNF witness, AB is a key by AB→C, and AC is a key because C→B. Neither A alone nor B alone nor C alone determines all three attributes. A lossless split into BC and AC can preserve C→B, but the dependency AB→C cannot then be checked from the projected dependencies without reconstructing the join. This illustrates the difference between lossless data reconstruction and local enforcement of dependencies.

Original paper, page 23 · Answer key

2 marks · MSQ
Report issue

Checking BCNF and a binary decomposition

Normalization & Decomposition

Question 47, GATE 2025: Schema team(name,city,owner) has dependencies name→city and name→owner, and is decomposed into t1(name,city),t2(name,owner). Select true statements: A team is not BCNF; B both components are BCNF; C the join is lossless; D team is not 3NF.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Step through it (4 parts)

Approach: Find the key, check the determinants of nontrivial dependencies, then use the binary lossless-join criterion.
The closure of {name} contains name, city and owner, so name is a key of team. All nontrivial given dependencies, and their relevant nontrivial consequences, have a determinant containing that key. Therefore team is BCNF. Since BCNF implies 3NF, A and D are false.
In t1, name determines city; in t2, name determines owner. Thus name is also a key of each component and both are BCNF, making B true.
The common attribute set is t1∩t2={name}. It determines all attributes of t1 and also all attributes of t2. In particular it satisfies the binary lossless-join condition that the intersection determine one component. Therefore joining the projections cannot create spurious combinations for any original instance satisfying the dependencies, making C true.
Select B,C. Decomposition is not needed to fix a normal-form violation here; it is nevertheless lossless, and the listed dependencies are also retained in the separate components.

Original paper, page 47 · Answer key

2 marks · MSQ
Report issue

Normalization & Decomposition

Question 46, GATE 2025: Relations have the following complete sets of functional dependencies:
R1(A,B,C,D,E): D→E, EA→B, EB→C.
R2(A,B,C,D): A→D, A→B, C→A.
Select true assertions: A. R1 is in 3NF; B. R2 is in 3NF; C. R1 is not in 3NF; D. R2 is not in 3NF.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

Step through it (2 parts)

For 3NF, every nontrivial dependency X→Y must have X a superkey or each right-hand attribute prime, meaning it belongs to some candidate key. Identify the keys before applying this test.

In R1, A and D never appear on any right-hand side, so neither can be obtained from other attributes and every key must contain both. Compute (AD)+: start with A,D; D→E adds E; EA→B adds B; EB→C adds C. Thus AD determines all five attributes and is the unique candidate key. Only A,D are prime. The dependency D→E violates 3NF: D+=DE is not a superkey and E is nonprime. Hence R1 is not in 3NF.

In R2, C never appears on a right-hand side and must belong to every key. C→A, followed by A→D and A→B, gives C+=ABCD, so C alone is the unique candidate key. A is not a superkey, since A+=ABD lacks C, and D,B are nonprime. Either A→D or A→B therefore violates 3NF. R2 is not in 3NF either. Select C,D.

Original paper, page 35 · Answer key

1 mark · MSQ
Report issue

Atomic attributes versus multi-column keys

Normalization & Decomposition

Question 22, GATE 2024: Which claims about a relation R in first normal form are true? A R may have a multi-attribute key. B R cannot have a foreign key. C R cannot have a composite attribute. D R cannot have more than one candidate key.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C

Approach: First normal form concerns the form of attribute values, not the number of columns in a key or the number of valid identifiers.
1. In the usual relational model, a 1NF relation stores one atomic value in each attribute position. An undivided composite attribute, such as an Address object containing separate Street and City components, must be represented using suitable atomic columns. Thus C is true in the intended terminology.
2. Several individually atomic columns can together uniquely identify a row. For example, (StudentID,CourseID) can be a key of an enrollment relation. This is a composite key, not a composite attribute, so A is true.
3. A foreign key simply constrains values to reference another relation. It is compatible with atomic values, so B is false.
4. Different columns or column sets may each identify rows uniquely. First normal form does not forbid multiple candidate keys, so D is false.
Answer: A and C.

Original paper, page 15 · Answer key

1 mark · MCQ
Report issue

Normalization & Decomposition

Question 14, GATE 2022: Which relational-model statement is true under the intended textbook interpretation? A every two-attribute relation is BCNF; B all attributes prime implies BCNF; C every relation has a nonprime attribute; D BCNF decompositions preserve functional dependencies. Discuss any needed qualification.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Our answer: A under the nonempty-determinant convention

With two attributes A, B and nonempty determinants, the only potentially nontrivial dependencies are A→B and B→A; either determinant is a key. Thus the relation is BCNF, intended A. All-prime attributes do not suffice: R(A, B, C) with AB→C and C→B has keys AB and AC but violates BCNF. BCNF decomposition need not preserve all dependencies. Literal qualification: empty determinants are legal in general FD theory. If ∅→A holds in R(A, B) while B varies, ∅ is not a superkey, so this binary relation is not BCNF. Official A therefore needs the usual exclusion of constant-column dependencies, which the prompt does not state.

BCNF requires every determinant of a nontrivial functional dependency to be a superkey. For the three-attribute counterexample, AB and AC each determine all attributes, so all attributes are prime, but C alone determines B without determining A. This also illustrates why “prime” is weaker than the BCNF determinant condition. Keep the empty-determinant exception separate from the intended exam convention.

Original paper, page 12 · Answer key

2 marks · MCQ
Report issue

Normalization & Decomposition

Question 33, GATE 2021: R(P,Q,S,T,X,Y,Z,W) has FDs PQ→X, P→YX, Q→Y, Y→ZW. D1 decomposes it into (P,Q,S,T),(P,T,X),(Q,Y),(Y,Z,W). D2 decomposes it into (P,Q,S),(T,X),(Q,Y),(Y,Z,W). Which is correct? A D1 lossless/D2 lossy; B D1 lossy/D2 lossless; C both lossless; D both lossy.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (2 parts)

For D1, join PQST with PTX on PT: P→X makes PT a key of PTX, so this step is lossless. Join QY using Q→Y, then YZW using Y→ZW; both steps are lossless. D2 separates TX from every other component, leaving no common attribute to reconnect it. A concrete legal relation can contain two rows with distinct P, Q, S, T, X, Y, Z, W values; all listed FDs hold, but joining its D2 projections pairs each TX row with either other-part row, creating spurious tuples. Thus D1 is lossless and D2 lossy, A.

For D1, add projections in the order PQST,PTX,QY,YZW. Their intersections with the accumulated schema are PT,Q,Y respectively, each determining all attributes of the new projection via P→X,Q→Y,Y→ZW. The binary lossless-join criterion applies at each step. For D2 use two original tuples (p1,q1,s1,t1,x1,y1,z1,w1) and (p2,q2,s2,t2,x2,y2,z2,w2) with every subscripted value distinct. All FDs hold, yet the join contains (p1,q1,s1,t2,x2,y1,z1,w1), which was not an original tuple.

Original paper, page 28 · Answer key

2 marks · MCQ
Report issue

Normalization & Decomposition

Question 36, GATE 2020: R is in 3NF but not BCNF. Which must hold? A a nontrivial FD X→A has nonsuperkey X and prime A; B such an FD has nonprime A and X not a proper subset of any key; C such an FD has nonprime A and X a proper subset of some key; D some cell is a set rather than atomic.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Worked explanation

For each nontrivial dependency X→A, BCNF requires X to be a superkey. 3NF allows an exception when A is prime, meaning A belongs to at least one candidate key. Because R is not BCNF, at least one dependency violates its determinant requirement. Because R still is 3NF, that violating dependency must meet the prime-attribute exception. This proves A directly. Whether X is or is not a proper subset of a key cannot make a nonprime right-hand side acceptable to 3NF when X is not a superkey. Option D contradicts the ordinary atomic-relation setting.

Derivation and answer

Failure of BCNF guarantees a nontrivial FD X→A with X not a superkey. Since3NF still holds, its permitted exception forces A to be prime, belonging to some candidate key. Thus A. The nonprime alternatives violate 3NF, and set-valued cells violate the assumed first normal form.

Original paper, page 12 · Answer key

2 marks · MCQ
Report issue

Testing a relational decomposition

Normalization & Decomposition

Question 32, GATE 2019: On X(P,Q,R,S), F={QR→S, R→P, S→Q}. Decompose X into Y(P,R) and Z(Q,R,S). Test I: both components are BCNF; II: the decomposition is lossless and dependency preserving. Options A both, B I only, C II only, D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (3 parts)

1. BCNF requires the determinant of every nontrivial functional dependency to be a superkey. In Y, R→P gives R+={R,P}, so R is a key and Y is in BCNF.
2. In Z, S→Q still holds. But S+ within Z is only {S,Q}; no dependency derives R. Thus S is not a superkey and this nontrivial dependency violates BCNF. Statement I is false.
3. Dependency preservation asks whether enforcing dependencies locally suffices for the original F. R→P can be checked in Y; QR→S and S→Q can both be checked in Z. All original dependencies survive, so preservation holds.
4. For a binary decomposition, losslessness follows if the intersection functionally determines either component. Y∩Z={R}, and R→PR means the intersection determines Y. Joining valid projections therefore introduces no spurious tuples.
5. Both parts of II hold, so II alone is true: C. Losslessness and dependency preservation are distinct tests; neither implies that every resulting relation must satisfy BCNF.

Original paper, page 11 · Answer key

2 marks · MCQ
Report issue

3NF but not BCNF

Normalization & Decomposition

Question 42, GATE 2018: Schemas: I R(rollno,courses), courses set-valued, rollno→courses; II R(rollno,courseid,email), rollno,courseid→email and email→rollno; III R(rollno,courseid,marks,grade), rollno,courseid→marks,grade and marks→grade; IV R(rollno,courseid,credit), rollno,courseid→credit and courseid→credit. Which is 3NF but not BCNF? A I; B II; C III; D IV.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (4 parts)

Method

BCNF requires every nontrivial dependency’s determinant to be a superkey. 3NF allows a second possibility: its right-hand attribute is prime, meaning it belongs to some candidate key. For II, email together with courseid determines rollno and all attributes, while rollno together with courseid determines email. Neither email nor rollno alone determines courseid. Thus email→rollno violates BCNF but is permitted by 3NF because rollno is prime.

Solution

In schema II, candidate keys are {rollno, courseid} and {email, courseid}. All three attributes are prime, so each listed dependency satisfies 3NF. But email→rollno has a determinant that is not a superkey, violating BCNF. Schema I has a set-valued non-atomic attribute under the intended 1NF definition. Schema III has marks→grade with a non-superkey determinant and non-prime right side; schema IV has the analogous courseid→credit violation. Hence only schema II, B. The listed nontrivial dependencies are understood as a generating set, rather than literally excluding dependencies implied by them.

Original paper, page 18 · Answer key

1 mark · MCQ
Report issue

Normalization & Decomposition

Question 23, GATE 2016: An article relation has attributes Volume,Number,StartPage,EndPage,Title,Year,Price. Its primary key K is (Volume,Number,StartPage,EndPage), with FDs K→Title, (Volume,Number)→Year, K→Price. It is decomposed into (Volume,Number,StartPage,EndPage,Title,Price) and (Volume,Number,Year). What is the weakest normal form the new database satisfies but the old one does not? A:1NF. B:2NF. C:3NF. D:BCNF.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (3 parts)

The old relation has a partial dependency (Volume, Number)→Year from a proper subset of the composite key to a nonprime attribute, violating 2NF. Splitting off(Volume, Number, Year) removes it; under the supplied FDs both resulting determinants are keys. The weakest newly satisfied form is 2NF, B, although the new schemas also satisfy higher forms under these dependencies.

Second normal form forbids a nonprime attribute from depending on only part of a candidate key. Year violates precisely this condition because Volume and Number are a proper subset of K. In the new Year relation, that pair is the whole key, so its dependency is no longer partial. In the other relation, Title and Price depend on its full key. The word weakest is decisive: even if BCNF also holds under the stated FDs,2NF is the first level crossed.

Original paper, page 11 · Answer key

2 marks · MCQ
Report issue

Normalization & Decomposition

Question 30, GATE 2014: S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF. S2: {AB→C,D→E,E→C} is a minimal cover of {AB→C,D→E,AB→E,E→C}. Which holds? A: S1 true, S2 false. B: both true. C: S1 false, S2 true. D: both false.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Our answer: A under the nonempty-determinant convention

1. Method and setup. For S2, equivalent covers must imply the same dependencies, not merely contain fewer entries. Compute (AB)⁺ under the proposed cover: it contains A,B,C but not E, showing a lost dependency. For S1, single-valuedness addresses 1NF; the stronger forms also depend on the possible functional dependencies and their determinants.

2. Work through the result and its assumptions. For a two-attribute relation, any nontrivial FD with nonempty determinant has a singleton determinant that determines both attributes, so it is a key; hence BCNF and the weaker forms hold. S2 is false because AB→E cannot be derived from the proposed cover. Thus A under the textbook convention. If empty determinants are allowed, ∅→B with varying A violates BCNF and 3NF, so the unconditional S1 needs qualification.

Original paper, page 14 · Answer key

2 marks · MCQ
Report issue

Highest normal form with a partial dependency

Normalization & Decomposition

Question 55, GATE 2013: For the same relation and FDs CH→G, A→BC, B→CFH, E→A, F→EG, classify normal form: A1NFnot2NF; B2NFnot3NF; C3NFnotBCNF; DBCNF.
Question 55, GATE 2013: For the same relation and FDs CH→G, A→BC, B→CFH, E→A, F→EG, classify normal form: A1NFnot2NF; B2NFnot3NF; C3NFnotBCNF; DBCNF.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (10 steps)

Atomic fields give 1NF. The candidate keys are AD, BD, DE, DF, so the prime attributes are A, B, D, E, F and the non-prime attributes are C, G, H. From the given dependency A→BC we obtain A→C. Here A is a proper subset of the candidate key AD and C is non-prime, so C has a partial dependency on a candidate key. This violates 2NF. Therefore the relation is in 1NF but not 2NF, option A; no higher-normal-form analysis is needed.

Second normal form forbids a nonprime attribute from depending on a proper subset of any candidate key. AD is a candidate key and C is nonprime, but Aalone determines C through A→BC. This single partial dependency suffices to disprove 2NF. Atomic fields already establish 1NF, so the exact classification is 1NFbut not 2NF. There is no need to test every FD against 3NF/BCNF after a lower prerequisite has failed.

Original paper, page 12 · Answer key

1 mark · MCQ
Report issue

Relationship between BCNF and 3NF

Normalization & Decomposition

Question 2, GATE 2012: Which of the following is TRUE?
       (A) Every relation in 3NF is also in BCNF
       (B) A relation R is in 3NF if every non-prime attribute of R is fully functionally dependent on every
           key of R
       (C) Every relation in BCNF is also in 3NF
       (D) No relation can be in both BCNF and 3NF
Tap to enlarge
Your answer
Answer & solution

Official answer: C

BCNF requires every determinant of a nontrivial functional dependency to be a superkey. This satisfies the 3NF alternative that the determinant is a superkey or the dependent attribute is prime. Therefore BCNF implies 3NF, C. The converse need not hold. Full dependence of non-prime attributes on keys describes the 2NF condition and does not by itself exclude transitive dependencies.

Check: For a concrete 3NF-not-BCNF schema, take R(A,B,C) with AB→C and C→B. Candidate keys are AB and AC. C→B violates BCNF because C is not a superkey, but satisfies 3NF because B is prime.

Original paper, page 2 · Answer key

2 marks · MCQ
Report issue

Normal form with key-implied dependencies

Normalization & Decomposition

Question 56, GATE 2009: For the preceding schema, supplier names and street names are unique within a city, and(sname, city) is a candidate key. No FDs other than those implied by primary/candidate keys are assumed. Choose A BCNF; B 3NF not BCNF; C 2NF not 3NF; D not 2NF.
Question 56, GATE 2009: For the preceding schema, supplier names and street names are unique within a city, and(sname, city) is a candidate key. No FDs other than those implied by primary/candidate keys are assumed. Choose A BCNF; B 3NF not BCNF; C 2NF not 3NF; D not 2NF.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

The given primary keys are Suppliers.sid, Parts.pid, and Catalog.(sid, pid); Suppliers additionally has candidate key (sname, city). The question explicitly rules out functional dependencies other than those implied by primary and candidate keys. Consequently every nontrivial FD has a superkey as determinant, exactly the BCNF condition. All three relations are in BCNF, option A. Do not infer street→city from an address or infer sname alone is a key: the stipulated uniqueness is within a city and (sname, city) is explicitly the candidate key.

BCNF tests every nontrivial FD X→Y and requires X to be a superkey. The source explicitly permits only dependencies implied by the listed keys, so all such determinants qualify. Do not invent dependencies from the meaning of street or supplier name beyond the stated within-city uniqueness. Thus the schema meets BCNF and consequently the weaker normal forms as well; A is the strongest correct listed description.

Original paper, page 13

2 marks · MCQ
Report issue

Normal forms of Book and Collection

Normalization & Decomposition

Question 69, GATE 2008: Book(Title,Author,Catalog_no,Publisher,Year,Price) and Collection(Title,Author,Catalog_no) have key {Author,Title}. Dependencies: Title Author→Catalog_no; Catalog_no→Title Author Publisher Year; Publisher Title Year→Price. Which statement is true?

(A) Both are in BCNF
(B) Both are in 3NF only
(C) Book is in 2NF and Collection is in 3NF
(D) Both are in 2NF only
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (2 parts)

1. In Book, both {Title,Author} and {Catalog_no} are candidate keys. No given dependency makes a nonprime attribute depend on a proper subset of a candidate key, so Book is in 2NF.
2. Publisher,Title,Year→Price violates 3NF because its determinant is not a superkey and Price is nonprime. Collection has only Title, Author and Catalog_no; its nontrivial determinants are candidate keys, so it is BCNF and hence also 3NF.
3. Therefore C is true. The wording of C does not say Collection is only in 3NF.

Original paper, page 14

2 marks · MCQ
Report issue

Normal-form transitive dependency

Normalization & Decomposition

Question 62, GATE 2007: Which normalization statement is intended to be false? Interpret the textbook conventions discussed in the solution.
Options:
(A) Any two-attribute relation is in BCNF
(B) A relation whose every candidate key has one attribute is in 2NF
(C) A prime attribute can be transitively dependent on a key in a 3NF relation
(D) A prime attribute can be transitively dependent on a key in a BCNF relation
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Approach. For a nontrivial dependency X→A, 3NF permits either X to be a superkey or A to be prime. BCNF removes the prime-attribute exception. Definitions of transitive dependence and empty determinants matter here.

2. Derivation and interpretation. Under standard textbook normalization conventions, a two-attribute relation is BCNF: a nontrivial dependency from one attribute to the other makes its determinant a key. Single-attribute candidate keys have no proper nonempty subset, so no partial dependency prevents 2NF. In 3NF a non-key determinant may determine a prime attribute, permitting the transitive dependency in C. BCNF instead requires every nontrivial determinant to be a superkey, so it excludes a transitive dependency through a non-key determinant. D is the intended false statement. Here transitive dependency means the normalization violation through a non-superkey, not merely any composable implication. The claims about two-attribute relations and singleton keys also assume the textbook convention excluding nontrivial empty-determinant dependencies. If such dependencies are allowed, R(A,B) with ∅ -> B and candidate key A violates both BCNF and 2NF: ∅ is not a superkey, and the nonprime B depends on a proper subset of key A. Consequently A and B are also false under that fully general interpretation, so D is the intended answer only with this convention.

Original paper, page 15

1 mark · MCQ
Report issue

Normalization guarantees

Normalization & Decomposition

Question 29, GATE 2005: Which normal-form statement is false? A BCNF stricter than 3NF; B lossless dependency-preserving 3NF decomposition always possible; C lossless dependency-preserving BCNF decomposition always possible; D any two-attribute relation is BCNF. Preserve the empty-determinant qualification for D.
Question 29, GATE 2005: Which normal-form statement is false? A BCNF stricter than 3NF; B lossless dependency-preserving 3NF decomposition always possible; C lossless dependency-preserving BCNF decomposition always possible; D any two-attribute relation is BCNF. Preserve the empty-determinant qualification for D.
Tap to enlarge
Your answer
Answer & solution

Answer: C under the usual nonempty-determinant convention (no official key was published)

A lossless dependency-preserving 3NF decomposition always exists, whereas achieving BCNF can sacrifice dependency preservation. For example R(A, B, C) with AB→C and C→B has a BCNF violation C→B; decomposition into CB and AC loses the ability to enforce AB→C locally. Thus C is false. The separate assertion that every two-attribute schema is BCNF assumes no nontrivial empty-determinant dependencies: with ∅→A but A not determining B, R(A, B) is a counterexample to that assertion. Under literal unrestricted FDs both C and D can fail; the conventional answer excludes constant-column FDs.

A3NF synthesis can preserve every dependency and be lossless, whereas BCNF decomposition can force some dependencies to require a join for checking. For AB→C, C→B, splitting off CB removes the BCNF violation but leaves AB→C unenforceable within either component alone. Hence C is the conventional false assertion. Constant-column dependencies∅→A supply the explicitly retained counterexample to D under unrestricted definitions; the source’s unique-choice answer requires excluding that case.

Original paper, page 3

1 mark · MCQ
Report issue

Lossy projection and natural join

Normalization & Decomposition

Question 30, GATE 2005: For instance r(A, B, C, D), project r1=π_ABC(r), r2=π_AD(r) and rejoin s=r1⋈r2. The decomposition is lossy. Which is true? A s⊂r; B r∪s=r; C r⊂s; D r⋈s=s.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Each original tuple contributes matching projections to r1 and r2, so r⊆r1⋈r2=s. A lossy decomposition creates spurious joined tuples; for the stated lossy instance the containment is strict, r⊂s, C. A natural join here does not discard any original tuple.

Projection cannot lose an original tuple when its two projections are rejoined: they still agree on their shared A value. The join may combine components from different original tuples, adding spurious tuples. A lossy instance therefore gives strict inclusion r⊂s. Since r and s have identical schemas, their natural join is their intersection, namely r, not s. Thus only C states the proper direction.

Original paper, page 4

2 marks · MCQ
Report issue

Prime-attribute dependencies and normal form

Normalization & Decomposition

Question 50, GATE 2004: StudentPerformance(name,courseNo,rollNo,grade) has dependencies (name,courseNo)→grade; (rollNo,courseNo)→grade; name→rollNo; rollNo→name. What is its highest listed normal form?
Options:
(A) 2NF
(B) 3NF
(C) BCNF
(D) 4NF
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step through it (8 steps)

1. The candidate keys are{name,courseNo} and{rollNo,courseNo}. Thus name,rollNo,courseNo are prime attributes, and grade is non-prime.

2. Dependencies from either key to grade satisfy 3NF. The non-key determinants name and rollNo determine only another prime attribute, so these dependencies also satisfy 3NF.

3. But name→rollNo and rollNo→name violate BCNF because neither determinant determines courseNo. Highest listed normal form is 3NF.

4. Teaching check: Compute closures: {name,courseNo}+ and {rollNo,courseNo}+ both contain all attributes, but name+ contains only name,rollNo. In 3NF a non-superkey determinant may determine a prime attribute; BCNF forbids that exception. This is exactly why the two normal forms differ here.

Original paper, page 7

2 marks · MCQ
Report issue

Normal form from only the listed dependencies

Normalization & Decomposition

Question 85, GATE 2003: The database functional dependencies are Date_of_birth→Age; Age→Eligibility; Name→Roll_number; Roll_number→Name; Course_number→Course_name; Course_number→Instructor; (Roll_number,Course_number)→Grade. Classify relation R(Roll_number,Name,Date_of_birth,Age):
A. In 2NF but not 3NF
B. In 3NF but not BCNF
C. In BCNF
D. None of the above
Use only the listed dependencies unless an additional identifying dependency is explicitly assumed.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Project the dependencies onto R. The relevant nontrivial ones are Roll_number→Name, Name→Roll_number and Date_of_birth→Age. No listed rule determines Date_of_birth from Roll_number or Name.
2. The closure of {Roll_number,Date_of_birth} contains all four attributes, and removing either attribute loses information. Likewise {Name,Date_of_birth} is a candidate key. Roll_number and Name alone are not keys under the stated dependency set.
3. Age is nonprime and depends on Date_of_birth, a proper subset of each composite candidate key. This is a partial dependency violating 2NF. Therefore none of A–C holds; D is the literal answer.
4. If one additionally assumes Roll_number→Date_of_birth, a single-attribute identifying key results and the usual 2NF-but-not-3NF answer A follows. The source does not supply that extra dependency, so it is a separate conditional interpretation.

Solution: Restrict the listed dependencies to R(Roll_number,Name,Date_of_birth,Age). They give Roll_number→Name, Name→Roll_number, and Date_of_birth→Age. Neither Name nor Roll_number determines Date_of_birth under this stated set. The candidate keys are therefore {Roll_number,Date_of_birth} and {Name,Date_of_birth}; Age is nonprime and depends on the proper key subset Date_of_birth. This violates 2NF, so the literal listed-dependency answer is D, none of the first three choices. If one additionally assumes Roll_number→Date_of_birth because roll numbers identify complete student records, Name and Roll_number become single-attribute keys and the relation is 2NF but not 3NF owing to Date_of_birth→Age, yielding A. That extra dependency is not supplied and must be labelled as an assumption.

Original paper, page 12

1 mark · MCQ
Report issue

Functional-dependency redundancy after BCNF

Normalization & Decomposition

Question 1.19, GATE 2002: Relation R, with functional dependencies F, is decomposed into BCNF. How much redundancy caused by functional dependencies remains in the resulting relations?
(A) Zero; (B) Positive, but less than in an equivalent 3NF decomposition; (C) Proportional to the size of F⁺; (D) Cannot be determined.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: Identify the redundancy that BCNF targets.

Step 2: A dependency such as Department→Office repeats an office value across employee rows when Department is not a key. Decomposition can put that dependency in a relation where Department is a key, eliminating that particular repetition. BCNF applies this superkey condition to every nontrivial projected FD; it does not promise absence of multivalued or application-level redundancy.

Conclusion: BCNF requires the determinant of every nontrivial projected functional dependency to be a superkey. Therefore the usual within-relation redundancy caused by a nonkey determinant is eliminated, A. This claim is specifically about FD-based redundancy in the decomposed relations, not all possible redundancy or guaranteed dependency preservation.

Original paper, page 2

2 marks · MCQ
Report issue

Testing which decomposition is in BCNF

Normalization & Decomposition

Question 2.24, GATE 2002: R is decomposed using functional dependencies F, and S using dependencies G. One decomposition is stated to be BCNF and the other 3NF, without identifying which. Given the closures of F and G, which test should be applied to guarantee identification?
(A) Dependency preservation; (B) Lossless join; (C) BCNF definition; (D) 3NF definition.
Tap to enlarge
Your answer
Answer & solution

Answer: C under the intended exclusive classification (no official key was published)

Step 1: Explain why the other tests do not identify the form.

Step 2: A lossless decomposition can be either BCNF or 3NF, and BCNF decomposition can fail to preserve dependencies. Testing only 3NF also fails because BCNF implies 3NF. The stronger BCNF determinant test directly determines whether any nontrivial dependency has a non-superkey left side. If both pass it, the original nonexclusive premise cannot distinguish them.

Conclusion: Test each resulting relation for every nontrivial projected dependency X→Y: X must be a superkey for BCNF. This direct definition gives C; neither dependency preservation nor losslessness distinguishes BCNF from 3NF in general, and every BCNF relation also satisfies 3NF. To identify exactly one decomposition, the premise must mean the other is 3NF but not BCNF. If it only says 3NF, both might be BCNF and no unique classification follows.

Original paper, page 6

Descriptive
Report issue

Lossless decomposition through a common determinant

Normalization & Decomposition

Question 16(a), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(a): Is the decomposition lossless? Explain.
Question 16(a), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(a): Is the decomposition lossless? Explain.
Tap to enlarge
Answer & solution

Answer: Yes, the decomposition is lossless. (no official key was published)

Step through it (2 steps)

The source dependencies are M→O, NO→P, P→L, and L→MN. The components are R1(L,M,N,P) and R2(M,O), with intersection {M}. Since M→O, their intersection functionally determines all of R2. The binary lossless-join criterion therefore holds: (R1∩R2)→R2 is implied by the dependencies. Consequently joining the two projections of any legal instance recreates the original relation without spurious tuples.

Original paper, page 9

Descriptive
Report issue

Dependency preservation after decomposition

Normalization & Decomposition

Question 16(b), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(b): Is it dependency-preserving? If not, list dependencies not preserved.
Question 16(b), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(b): Is it dependency-preserving? If not, list dependencies not preserved.
Tap to enlarge
Answer & solution

Answer: No; NO→P is not preserved. (no official key was published)

Step through it (4 steps)

M→O is enforceable within R2, and P→L and L→MN within R1. The projection onto R1 also contains MN→P: M supplies O, then NO→P applies. Nevertheless NO→P cannot be recovered from the union of the projected dependency sets. In R1 no nontrivial dependency has determinant contained in {N}, since N+ under the original set is just {N}; in R2, O alone likewise determines nothing new. Thus the closure of {N,O} under the projected dependencies remains {N,O}, and does not contain P. Of the given dependencies, precisely NO→P is lost.
A concrete locally valid join illustrates the loss. Let R1 contain (L1,M1,n,P1) and (L2,M2,n,P2), with distinct Li,Mi,Pi, and let R2 contain (M1,o),(M2,o). Each component satisfies all its projected dependencies. Their join has the same (N,O)=(n,o) with different P values, violating NO→P.

Original paper, page 9

Descriptive
Report issue

Highest normal form of the decomposed relations

Normalization & Decomposition

Question 16(c), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(c): Determine the highest normal form of each decomposed relation.
Question 16(c), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(c): Determine the highest normal form of each decomposed relation.
Tap to enlarge
Answer & solution

Answer: Both R1 and R2 are in BCNF. (no official key was published)

Step through it (2 parts)

For R1(L,M,N,P), the candidate keys are {L}, {P}, and {M,N}. L gives M,N and then P using M→O and NO→P; P gives L and hence the rest; MN gives O and then P,L. Any determinant containing L or P is therefore a superkey. A determinant containing neither is a subset of {M,N}; neither M nor N alone determines an additional R1 attribute, whereas MN is a key. Hence every nontrivial projected dependency has a superkey determinant, so R1 is BCNF. In R2(M,O), M is the key and the only essential nontrivial dependency is M→O, so R2 is also BCNF. This does not imply dependency preservation; the lost NO→P constraint still requires checking across components.

Original paper, page 9

1 mark · MCQ
Report issue

Losslessness and dependency preservation

Normalization & Decomposition

Question 1.23, GATE 2001: Relation R(A,B,C,D) has dependencies A→B and C→D and is decomposed into AB and CD. Classify the decomposition as dependency-preserving or not and lossless or not.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (3 steps)

Step 1: A→B can be checked entirely in R1(AB), and C→D entirely in R2(CD). Thus the decomposition preserves both supplied dependencies.

Step 2: The two schemas have empty intersection. Their natural join is a Cartesian product, which can create spurious combinations. For instance tuples(a1,b1,c1,d1) and(a2,b2,c2,d2) satisfy the dependencies, but joining their projections also creates(a1,b1,c2,d2) and(a2,b2,c1,d1).

Hence the decomposition is dependency-preserving but not guaranteed lossless, C.

Original paper, page 3

2 marks · MCQ
Report issue

BCNF without dependency preservation

Normalization & Decomposition

Question 2.23, GATE 2001: Which FD set on R(A,B,C,D) does not admit a lossless, dependency-preserving BCNF decomposition? A: A→B,B→CD. B: A→B,B→C,C→D. C: AB→C,C→AD. D: A→BCD.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: For option C, AB→C and C→AD imply AB and BC are keys. Yet C alone does not determine B, so C→A and C→D violate BCNF. Decomposition into CAD and BC is lossless because their intersection C determines CAD, but it loses local enforcement of AB→C.

Step 2: Any relation containing A,B,C is not BCNF: it retains C→A while C is not a key. Without such a relation, projected dependencies cannot derive C from AB; no proper smaller attribute subset provides that dependency. Thus no dependency-preserving BCNF decomposition exists.

The other options admit lossless preserving choices: AB and BCD for A; AB,BC,CD for B; and the original already-BCNF relation for D. Hence C.

Original paper, page 7

2 marks · MSQ
Report issue

Normal forms after cyclic dependencies

Normalization & Decomposition

Question 2.7, GATE 1999: R(S,T,U,V) has S→T,T→U,U→V,V→S and is decomposed into R1,R2. Determine whether the components satisfy 2NF and 3NF.
Tap to enlarge
Select all that apply
Answer & solution

Answer: D: both (no official key was published)

By following the dependency cycle, each single attribute determines all four. Consequently, in any projected component, every individual attribute determines all attributes of that component and is a key. Every nontrivial projected FD therefore has a superkey determinant, so each component is in BCNF, hence also 3NF and 2NF. Thus D. This normal-form argument does not depend on whether the components intersect. The reproductions differ on that intersection symbol; normal form alone does not establish lossless decomposition.

Original paper, page 4

1 mark · MCQ
Report issue

A practical normalization target

Normalization & Decomposition

Question 1.34, GATE 1998: Which normal form is conventionally adequate for ordinary relational design:2NF, 5NF, 4NF, 3NF?
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Third normal form addresses dependencies of nonkey attributes that produce common update anomalies while permitting dependency-preserving, lossless decompositions. It is therefore the conventional general design target among these choices, D. Second normal form only removes partial dependence on composite keys and can leave transitive problems. Fourth and fifth normal forms address additional multivalued or join dependencies and may be necessary for particular schemas, but are not implied as the routine minimum by the question.

Original paper, page 3

Descriptive
Report issue

Single-key normalization assumptions

Normalization & Decomposition

Question 26(a), GATE 1998: Relation(Book-id,Subject-Category,Author-Name,Author-Nationality) has Book-id primary key. What is its highest normal form?
Question 26(a), GATE 1998: Relation(Book-id,Subject-Category,Author-Name,Author-Nationality) has Book-id primary key. What is its highest normal form?
Tap to enlarge
Answer & solution

Answer: 2NF under intended Author-Name→Nationality; key alone does not establish that dependency. (no official key was published)

Under the usual semantic assumption that an author name uniquely identifies one author with one nationality, the dependencies include Book-id→all attributes and Author-Name→Author-Nationality. The key is a single attribute, so there is no nonempty proper subset of it on which a nonprime attribute can partially depend. With atomic values, this gives 2NF in the conventional setting.

However Author-Name is not a superkey when an author can write several books, and Author-Nationality is nonprime. The dependency Author-Name→Author-Nationality therefore violates 3NF, and also BCNF. Thus the intended highest form is 2NF.

The premise formally states only the primary key, not all functional dependencies or candidate keys. If the only nontrivial dependencies were those forced by Book-id, the relation would be BCNF instead. Names need not uniquely identify authors in a real database, and multiple nationalities may require a separate modeling choice. Hence 2NF is a conditional semantic answer, not a theorem from the primary-key declaration alone. Constant-valued attributes with empty determinants would introduce additional exceptional dependencies not assumed by the textbook model.

Original paper, page 8

Descriptive
Report issue

Composite-key normalization

Normalization & Decomposition

Question 26(b), GATE 1998: Add Book-title and Author-address to the preceding book relation, with primary key(Author-Name,Book-title). What is its highest normal form?
Question 26(b), GATE 1998: Add Book-title and Author-address to the preceding book relation, with primary key(Author-Name,Book-title). What is its highest normal form?
Tap to enlarge
Answer & solution

Answer: 1NF under intended author→nationality,address dependencies; otherwise underdetermined. (no official key was published)

Assume all values are atomic and that each author identifier determines one nationality and one address. The declared key is now K={Author-Name,Book-title}, but the nonprime attributes Author-Nationality and Author-address depend on Author-Name alone, a proper subset of K. These are partial dependencies, violating 2NF. The intended highest normal form is therefore 1NF.

The contrast with part (a) is important: the same author dependency was transitive from a one-attribute book key there, but becomes partial when author is itself one component of the composite key. A decomposition into Author(Author-Name,Nationality,Address) and Book(Author-Name,Book-title,...) removes that particular partial dependency, subject to the remaining domain dependencies.

As before, the key declaration alone does not logically imply the semantic FDs. Author homonyms, multiple addresses or other candidate keys change the analysis. If no such non-key dependencies are imposed, one cannot infer a 2NF violation solely from the displayed attribute names. The conditional answer and its assumptions are retained because no official original/key has been verified.

Original paper, page 8

2 marks · MCQ
Report issue

Partial dependencies and normal form

Normalization & Decomposition

Question 6.9, GATE 1997: R(a, b, c, d) has atomic domains and only FDs a→c, b→d and their consequences. Which normal form applies?
Tap to enlarge
Your answer
Answer & solution

Answer: A: 1NF but not 2NF (no official key was published)

Step through it (4 steps)

Neither a nor b can be derived from the other attributes, so every key must contain both. The closure of ab includes c and d, so ab is the candidate key. Attribute c depends on only a, and d on only b, both proper subsets of that composite key. These are partial dependencies of nonprime attributes, violating 2NF. Atomic domains establish 1NF, so A is correct. The statement that no other independent FDs hold rules out an unstated single-attribute key that would alter this analysis.

Original paper, page 6

3 marks · Descriptive
Report issue

Third normal form without BCNF

Normalization & Decomposition

Question 26(a), GATE 1995: For R(A,B,C) with functional dependencies AB→C and C→A, show that R is in 3NF but not BCNF.
Question 26(a), GATE 1995: For R(A,B,C) with functional dependencies AB→C and C→A, show that R is in 3NF but not BCNF.
Tap to enlarge
Answer & solution

Answer: Candidate keys AB and BC make all attributes prime. C→A satisfies 3NF but violates BCNF since C is not a superkey. (no official key was published)

Step through it (7 steps)

Compute enough closures to identify the keys. (AB)+ contains A,B and gains C by AB→C, so AB is a superkey; neither A nor B alone determines all attributes, so it is minimal. (BC)+ gains A by C→A and is likewise a candidate key. Every candidate key must contain B because no dependency can introduce B. A key containing B must also include A or C, giving precisely AB and BC. Thus A,B,C are all prime attributes, meaning each occurs in at least one candidate key.

For 3NF, every nontrivial dependency X→Y with a single right-side attribute must have X a superkey or Y prime. The given AB→C has a superkey determinant. In C→A, C is not a superkey, but A is prime because it belongs to key AB. This is allowed in 3NF. In fact every attribute of R is prime, so any implied single-attribute dependency also meets that alternative of the definition. Hence R is in 3NF.

BCNF removes the prime-attribute exception: every nontrivial dependency must have a superkey on the left. Here C+={C,A}; it cannot acquire B, so C is not a superkey. The nontrivial dependency C→A therefore violates BCNF. Being in 3NF does not imply that every determinant is a key. This conclusion assumes the displayed dependencies generate the schema's constraints and that the relation is in first normal form, as is conventional for this normalization problem.

Original paper, page 8

Report issue

Losslessness and dependency preservation in BCNF

Normalization & Decomposition

Question 3.6, GATE 1994: True or false: every schema has a BCNF decomposition that is both lossless and dependency preserving.
Tap to enlarge
Answer & solution

Answer: False (no official key was published)

Take R(A,B,C) with F={AB→C,C→B}. Its candidate keys are AB and AC. The dependency C→B violates BCNF because C is not a superkey. Decomposing into CB and AC is lossless, since the common C determines CB, and both components are BCNF. But their projected dependencies do not imply AB→C: from AB one cannot derive C. More generally every proper subrelation here supplies no dependency producing C from AB, so no decomposition into proper BCNF components can preserve that FD. BCNF can guarantee losslessness, not simultaneous dependency preservation in every case.

Original paper, page 4

Descriptive
Report issue

Third-normal-form diagnosis

Normalization & Decomposition

Question 24(a), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Is this database in 3NF?
Question 24(a), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Is this database in 3NF?
Question 24(a), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Is this database in 3NF?
Question 24(a), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Is this database in 3NF?
Tap to enlarge
Answer & solution

Answer: No: TEACH violates 3NF through tno→tname. (no official key was published)

Step through it (4 parts)

Treat each listed relation separately and use the supplied FDs as the schema constraints. In STUDENTS, rollno is a key and determines the other attributes; COURSES likewise has key cno. ENROLL's determinant (rollno,cno) is its key. These three relations therefore satisfy BCNF, and in particular 3NF, under the stated dependencies.

TEACH has declared composite key (tno,cno). The dependency tno→tname is nontrivial, but tno alone does not determine cno, so it is not a superkey. The dependent attribute tname is not a member of the candidate key and is nonprime. This violates the 3NF test that every nontrivial FD have a superkey determinant or prime right-side attribute. Indeed it is already a partial dependency of a nonprime attribute on part of the composite key, violating 2NF.

Do not infer that tno is a key simply because it identifies a teacher: a teacher can occur in several teaching rows, one per course. No additional FD tno→cno is supplied. If such a different constraint were imposed the answer could change, but it is not part of this schema.

Original paper, page 14

Descriptive
Report issue

Normalize the teaching relation

Normalization & Decomposition

Question 24(b), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Normalize the relations to 3NF if needed.
Question 24(b), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Normalize the relations to 3NF if needed.
Question 24(b), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Normalize the relations to 3NF if needed.
Question 24(b), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Normalize the relations to 3NF if needed.
Question 24(b), GATE 1993: STUDENTS(rollno key,sname,saddr), COURSES(cno key,cname), ENROLL(rollno,cno composite key,grade), TEACH(tno,cno composite key,tname). FDs: rollno→sname,saddr; cno→cname; tno→tname; rollno,cno→grade. The reproduced cao/sdaddr spellings are interpreted as cno/saddr. Normalize the relations to 3NF if needed.
Tap to enlarge
Answer & solution

Answer: Keep STUDENTS,COURSES,ENROLL; replace TEACH with TEACHER(tno key,tname) and TEACHES(tno,cno composite key). (no official key was published)

Separate teacher facts from teaching assignments. Use TEACHER(tno,tname) with primary key tno, and TEACHES(tno,cno) with primary key (tno,cno). Retain the other three relations unchanged. The dependency tno→tname now has a key determinant in TEACHER; no supplied nontrivial non-key dependency remains in TEACHES. Thus both components are BCNF, stronger than the requested 3NF.

This decomposition is lossless under the given FD. Its intersection is {tno}, which determines all of TEACHER. More concretely, every teaching pair joins to its unique teacher name, and rows sharing a teacher number cannot acquire different names because of the FD. Projecting a valid original TEACH relation and joining the projections therefore reconstructs it without spurious combinations of teacher names and assignments.

It also preserves the relevant dependency locally in TEACHER. Separating tname into a relation with only cno instead would attach a teacher name to a course rather than its determining teacher number, and would not preserve the intended dependency. Identical names across different teacher numbers remain permitted.

Original paper, page 14

Report issue

Reducing redundancy in the relational model

Normalization & Decomposition

Question 13(a.iii), GATE 1992: Give a one-line answer: how is redundancy reduced in the relational database model?
Question 13(a.iii), GATE 1992: Give a one-line answer: how is redundancy reduced in the relational database model?
Question 13(a.iii), GATE 1992: Give a one-line answer: how is redundancy reduced in the relational database model?
Tap to enlarge
Answer & solution

Answer: Normalize relations using their dependencies, decomposing repeated facts into linked relations with keys. (no official key was published)

One-line answer: Normalize relations using their dependencies, decomposing repeated facts into linked relations with keys.

Why this works: For example, a relation Employee(emp,dept,deptName) repeats deptName for every employee in a department when dept→deptName. Decompose it into Employee(emp,dept) and Department(dept,deptName), with dept as the latter key. The department fact is then stored once. Decomposition should preserve information through a lossless join, and dependency preservation is desirable. Being relational alone does not guarantee a normalized schema.

Redundancy means repeatedly storing the same fact, not merely having repeated key values. Keys or links may legitimately recur to express relationships. These are design mechanisms rather than a claim that the model makes every possible database free of redundancy.

Original paper, page 9