📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the primary key of a junction table for a many-to-many self-referencing relationship, such as UserFollow?

A. The pair (FollowerID, FollowedID) ✅
B. A single UserID
C. FollowedID alone
D. The date of following

Correct Answer: A. The pair (FollowerID, FollowedID)

Explanation

The pair identifies one follow link and prevents the same follow being recorded twice.