GATE / CS ARCHIVE

GATE CSE 1993 / QUESTION 24(b)

Normalize the teaching relation

Database Management Systems · Normalization & Decomposition · Full GATE CSE 1993 paper

GATE 1993, Q24(b) Descriptive
Report issue

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