November 14, 2008 at 2:10 am
Hi guyz,
I was a newbie in database design.
currently i was trying to separate an item entity attribute to different specific entity so i can store some special attribute according different type of item.
Basically i have diagram on how i going to implement this database, but was having problem using one foreign key to transitive dependence on four primary key
HEre was my diagram design :
Note :
Typeid was book, music, movie or games
While the indexno will keep increment.
Was this the correct way to generalize same attribute under the item entity and specialize the specific attribute to different type entity? or there is some better way to do so, please advice.
Thanks
November 16, 2008 at 1:42 am
There is seldom one "correct way" to do things but the potential advantage of this design is that you can easily enforce the rule that each item only has one subtype. Similar example at:
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply