+ Reply to Thread
Results 1 to 2 of 2

Thread: design relational database

  1. #1
    Registered User
    Join Date
    04-18-2011
    Location
    Bucuresti
    MS-Off Ver
    Excel 2007
    Posts
    64

    design relational database

    Hi, i run into some problems with the design of a db.

    In the attachment you can see the db.

    I need to connect tblAddendumDetails to tblAdvanceInvoices and tblFinalInvoices, but i get a referential integrity error.

    Can't tblAdvanceInvoices and tblFinalInvoices be used by both tblContracts and tblAddendumDetails ?

    Is there anyway to make this work or i need to create 4 more Invoices tables for the Addendums ?
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2007
    Posts
    1,879

    Re: design relational database

    Is an addendum invoice the same thing as a contract invoice? If not, you should create separate tables. Have a look at this article, particularily the section on normalization. To have good database design, you need to make sure all fields in a table are dependent upon the primary key. Linking your addendum details table to your advanced invoices and final invoices table would violate this principal.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0