Generalize & specialize design

  • 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

  • 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:

    http://blogs.conchango.com/davidportas/archive/2007/01/08/Distributed-Keys-and-Disjoint-Subtypes.aspx

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply