In this Diagram

the Enrolls table (at the top) only has Courses defined as a foreign key while in the Supplies table (at the bottom), every referenced Primary Key of the original tables is defined as foreign key.
Why is this so? Thank you!
In this Diagram

the Enrolls table (at the top) only has Courses defined as a foreign key while in the Supplies table (at the bottom), every referenced Primary Key of the original tables is defined as foreign key.
Why is this so? Thank you!
Both references in Enrolls are defined as foreign keys like they should. Only the foreign key on sid is written using the "column constraint" syntax, while the one on cid is written using the "table constraint" syntax.
The end effect is the same; it doesn't matter which syntax variant you use.