I'm trying to transform the following relation to 3NF but can't figure it out. The relation is (a student can only have 1 major):
STUDENT (StuID, StuName, Major), Primary Key = {StuID}
I tried the following transformation, splitting it into 2:
STUDENT (StuID, StuName)
MAJOR (StuID, Major)
But I don't think it is correct because there are still anomalies. For example, if the school decides to introduce a new Major, they can't add it unless a student has selected that major.
Can someone guide me how I should proceed with this problem.
Second try:
STUDENT (StuID, StuName, MajorID)
MAJOR (MajorID, Major)
MAJOR
in future?major
at a time?