📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

How is total participation on the N side of a 1:N relationship enforced in SQL?

A. By a UNIQUE constraint only
B. By a NOT NULL constraint on the foreign key ✅
C. By a CHECK constraint on the primary key
D. It cannot be enforced

Correct Answer: B. By a NOT NULL constraint on the foreign key

Explanation

Total participation means every N row must reference a parent, so the foreign key must be NOT NULL.