Colleges have different ways of organizing their departments. Some schools go School -> Term -> Department
. Others have steps in between, with the longest being School -> Sub_Campus -> Program -> Term -> Division -> Department
.
School
, Term
, and Department
are the only ones that always exist in a school's "tree" of departments. The order of these categories never changes, with the second example I gave you being the longest. Every step down is a 1:N relationship.
Now, I'm not sure how to set up the relationships between the tables. For example, what columns are in Term
? Its parent could be a Program
, Sub_Campus
, or School
. Which one it is depends on the school's system. I could conceive of setting up the Term
table to have foreign keys for all of those (which all would default to NULL
), but I'm not sure this is the canonical way of doing things here.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…