775 views
0 votes
0 votes
In SQL, foreign key constraints can only reference the primary key attributes
of the referenced relation, or other attributes declared to be a super key using
the unique constraint. As a result, total participation constraints on a
many-to-many relationship (or on the “one” side of a one-to-many relationship)
cannot be enforced on the relations created from the relationship,
using primary key, foreign key and not null constraints on the relations.
a. Explain why.
b. Explain how to enforce total participation constraints using complex
check constraints or assertions (see Section 4.4.7 of korth). (Unfortunately,
these features are not supported on any widely used database currently.)

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3
ajaysoni1924 asked Mar 28, 2019
335 views
Suppose the advisor relationship was one-to-one. What extra constraintsare required on the relation advisor to ensure that the one-to-one cardinalityconstraint is enforce...
0 votes
0 votes
0 answers
4