A relation R(A,B,C,D) is given.
C and D are equivalent (C is the course ID and D is the course name, one implies the other).
C and D are prime attributes.
Does that violate the requirement of 1NF or any other NF?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.
Sign up to join this communityA relation R(A,B,C,D) is given.
C and D are equivalent (C is the course ID and D is the course name, one implies the other).
C and D are prime attributes.
Does that violate the requirement of 1NF or any other NF?
As I understand your description C and D are called candidate keys. Either one of them could be used alone as the key. The combination of them both cannot be a candidate keys as each is redundant to the other - given a course ID we know the course name, given a name we know the ID.
Let's say we choose C as the primary key. Then D
Had we chosen D as the primary key then C would be normalized by symmetrical arguments.