Example of when you should use a foreign key that points to a candidate key, not a primary key?
From my reading, I understand what makes a good primary key, what a foreign key is and what a candidate key is. I've read in several different books and sources that: A foreign key must point to a candidate key (or primary) A foreign key almost always points to a primary key The authors of the sources always say something along the lines of, "while foreign keys can point at a candidate key (not primary) they seem to". Are there any examples of why you might choose a candidate key and not the primary key? Thank you Primary keys (PKs) have no role in relational theory. (Eg integrity or