📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

How many tables are needed to implement a simple self-referencing 1:N relationship?

A. One table, with a foreign key referencing its own primary key ✅
B. Three tables, including a junction table
C. Two tables, one for each role
D. No table, it is stored in a view

Correct Answer: A. One table, with a foreign key referencing its own primary key

Explanation

A 1:N recursive relationship needs only one table, because the many side points back to the one side in the same table.