Is this entity relationship diagram okay?

Discussion in 'Web Design and Development' started by nick9191, Jan 16, 2011.

  1. nick9191 macrumors 68040

    Feb 17, 2008
    Hi, could anyone just briefly glance over the attached ER diagram and mention if there are any glaring holes? Relationships, etc.

    Thanks in advance.

    Attached Files:

  2. Cliff3 macrumors 68000


    Nov 2, 2007
    SF Bay Area
    I would flatten it out some more.

    For example you have 4 tables devoted to storing information about people: resstaff, student, adviser, and next of kin. I would create one table for people, and use role definitions to type the person. If one person can have multiple roles, then you would need to store that information in an associative entity table to resolve the many to one relationships. You also have address information stored in multiple places: hall, resstaff, flat, student, leases, and next of kin. Create a single address table and have the other tables reference it as required. That way you only need to write one chunk of code to maintain address information and not one chunk for each table. Finally, your invoice design limits an invoice to having one line item. Most invoice structures use a master-detail pattern where one invoice header can have many detail lines.

Share This Page