📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A university Course has a PrerequisiteID that references CourseID. A course with no prerequisite has what value?

A. The same CourseID as itself
B. NULL in PrerequisiteID, because it has no parent course ✅
C. A duplicate CourseID
D. Zero, which is a valid CourseID

Correct Answer: B. NULL in PrerequisiteID, because it has no parent course

Explanation

A root course has no prerequisite, so the nullable self-referencing foreign key is left NULL.