Consider a many-to-one relationship between entity sets and . Suppose the relation created from is combined with the relation created from . In SQL, attributes participating in a foreign key constraint can be null. Explain how a constraint on total participation of in can be enforced using NOT NULL constriant in SQL.
The foreign-key attribute in corresponding to the primary key of should be made NOT NULL. This ensures that no tuple of which is not related to any entry in under can come in . For example, say a is a tuple in which has no corresponding entry in . This means when is combined with , it would have a foreign-key attribute corresponding to as NULL, which is not allowed.