📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A Category table has ParentCategoryID referencing CategoryID in the same table. What does this model?

A. A list of products in a category
B. A hierarchy of categories and subcategories ✅
C. A many-to-many link between categories
D. An order of categories by date

Correct Answer: B. A hierarchy of categories and subcategories

Explanation

A parent category can have many subcategories, and each subcategory has one parent, forming a tree inside one table.