We read your photo as:
A table includes the following attributes: StudNo, Surname, Other Name, Sex, SubCode, SubName, Lab.No. Identify the primary key and determine if the table is in 2NF. Explain your reasoning.
ScanSolve AI Answer
Step-by-step solution
2 stepsIdentify the primary key.
The table records practical lessons for students in different labs. A student can take multiple subjects, and a subject can be taken in different labs. To uniquely identify each practical lesson, the combination of
StudNo,SubCode, andLab.Nois required. Thus, the composite primary key is(StudNo, SubCode, Lab.No).Identify non-key attributes and check for partial dependencies.
A table is in 2NF if it is in 1NF and all non-key attributes are fully functionally dependent on the entire primary key. A partial dependency occurs when a non-key attribute depends on only a part of the composite primary key.
-
Reason 1: The attributes
Surname,Other Name, andSexare dependent only onStudNo. For example,StudNo'DM1' always corresponds to 'KOME', 'ROLAND', and 'M', regardless of theSubCodeorLab.No. SinceStudNois only a part of the composite primary key(StudNo, SubCode, Lab.No), this constitutes a partial dependency. -
Reason 2: The attribute
SubNameis dependent only onSubCode. For example,SubCode'780' always corresponds to 'Physics', regardless of theStudNoorLab.No. SinceSubCodeis only a part of the composite primary key(StudNo, SubCode, Lab.No), this also constitutes a partial dependency.
Therefore, the table is not in 2NF because it contains partial dependencies.
Reason 1: Non-key attributes like
Surname,Other Name, andSexare functionally dependent on only a part of the composite primary key (StudNo).
Reason 2: The non-key attributeSubNameis functionally dependent on only a part of the composite primary key (SubCode).-
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
More Computer Science Questions

Handwritten Step-by-Step Solution
Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.
Try on WhatsApp