Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2 !$ - Consider Figure 2.1. 3n addition to constraints re!ating the ,a!ues of co!umns in one tab!e to co!umns in another tab!e) there are a!so constraints that impose restrictions on ,a!ues in a co!umn or a combination of co!umns "ithin a tab!e. 'ne such constraint forces that a co!umn or a group of co!umns must be uni*ue across a!! ro"s in the tab!e. For e8amp!e) in the ST(D+-T tab!e) the Student-umber co!umn must be uni*ue $to pre,ent t"o different students from ha,ing the same Student-umber%. 3dentify the co!umn or the group of co!umns in the other tab!es that must be uni*ue across a!! ro"s in the tab!e# Answer: Tab!e C'(&S+
;&+&+<(3S3T+ S+CT3'-
?&AD+@&+;'&T
Co!umn$s% Course-umber Since this contains the combination of the department and the number that must be uni*ue "ithin the department. -ote "e "i!! o,er!ook the fact this does not accommodate a department from offering se,era! 9Specia! Topics: course "ith the same Course-umber but different tit!es. e cou!d make this a combination of Course-umber and Course-ame) but this is more succeptib!e to someone mistyping "hi!e entering data. The combination of Course-umber and ;rere*uisite-umber Section3dentifier e assume that no t"o sections can ha,e the same Section3dentifier. 3f "e "ere to consider that Section3dentifier is uni*ue on!y "ithin a gi,en course offered in a gi,en term $such as section 2 of CS1=1% then the ans"er changes to the combination of Section3dentifier) Course-umber) Semester) and >ear. Student-umber and Section3dentifier As per assumption stated in S+CT3'-) the Section3dentifier "i!! be different if a student takes the same course or a different course in another term.