1,215 views
0 votes
0 votes

Consider the relation schemas are shown below, which were generated
from the E-R diagram in Figure given below. For each schema, specify what foreign key
constraints, if any, should be created.

teaches (ID, course id, sec id, semester, year)
takes (ID, course id, sec id, semester, year, grade)
prereq (course id, prereq id)
advisor (s ID, i ID)
sec course (course id, sec id, semester, year)
sec time slot (course id, sec id, semester, year, time slot id)
sec class (course id, sec id, semester, year, building, room number)
inst dept (ID, dept name)
stud dept (ID, dept name)
course dept (course id, dept name)

 

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
2 votes
2 votes
0 answers
3
ajaysoni1924 asked Mar 28, 2019
553 views
Explain the distinction between condition-defined and user-defined constraints.Which of these constraints can the system check automatically?Explain your answer.