📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the foreign key in a junction table for Books and Authors?

A. Both BookID and AuthorID, each referencing its own table ✅
B. AuthorID only
C. BookID only
D. A new BookAuthorID only

Correct Answer: A. Both BookID and AuthorID, each referencing its own table

Explanation

The junction table holds a foreign key to each side, so BookID references Book and AuthorID references Author.