Quote:
|
Kalundra - the principle problem is you have not explained in detail what you are trying to achieve, what you are modelling, what are the real world circumstances. You keep posting models, but we don't know if they are appropriate or not unless you tell us the background.
|
I am developing community based website where people can contribute their images, documents, audios and videos.
client's requirement specification tells that all of those uploads have categories and subcategories.(no subsubcategories). After thinking lots of alternate solutions I have come across following design..
Upload belong to particular category or subcategory. Categories have subcategories or they don't have any subcategory. In that case it may be NULL.
Category
------------
CategoryId(PK)
CategoryName
Subcategory
------------
SubcategoryId(PK)
CategoryId(FK) ref Category(CategoryId)
SubcategoryName
Upload
-------------
UploadId(PK)
CategoryId(FK) ref Category (CategoryId)
SubcategoryId(FK) ref Subcategory (SubcategoryId)
UploadName
....
really want to know your point of view..
===========================================