Results 1 to 5 of 5
  1. #1
    tehbrosta is offline Novice
    Windows 7 Access 2007
    Join Date
    Dec 2010
    Posts
    3

    Normalizing a Database

    I am taking an online class and I decided to break the mold and not use one of the supplied databases as my project. The professor told me that if you want to do this make sure the database is normalized. I understand this concept but would like some experts to take a look at it. I have to have this down before I proceed on the rest of the project since everything builds off this.

    A client can have many HOSTINGSUBCRIPTIONS


    Each HOSTINGSUBSCRIPTION can only be linked to one HOSTINGPACKAGE
    A client can have many INVOICEs
    INVOICEs can have many LINEs

    I believe HOSTINGSUBSCRIPTIONS and HOSTINGPACKAGE is correct, but INVOICE and LINES are not. It should be a M:N relationship, but I'm not sure how to properly show that.


  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It is fine if all of your PK's are AutoNumbers. You also do *not* need to involve the FK in the PK of the Line table.

  3. #3
    tehbrosta is offline Novice
    Windows 7 Access 2007
    Join Date
    Dec 2010
    Posts
    3
    Quote Originally Posted by RuralGuy View Post
    It is fine if all of your PK's are AutoNumbers. You also do *not* need to involve the FK in the PK of the Line table.
    I'm not doubting you, obviously you know what you are talking about but the reason why I did that is so I could have a unique key. LINE_NUM is the order of how items show up on the INVOICE.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So you want the LineItems to be in a paticular order and you set that when you add the line item, right. If you do not care about the order but like line numbers then those could be assigned dynamically at run time. Otherwise what you have is just fine not that you explained the LineNumber field.

  5. #5
    tehbrosta is offline Novice
    Windows 7 Access 2007
    Join Date
    Dec 2010
    Posts
    3
    Quote Originally Posted by RuralGuy View Post
    So you want the LineItems to be in a paticular order and you set that when you add the line item, right. If you do not care about the order but like line numbers then those could be assigned dynamically at run time. Otherwise what you have is just fine not that you explained the LineNumber field.
    I am explaining each attribute now. Thanks for your time.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  2. Replies: 1
    Last Post: 11-03-2010, 10:41 AM
  3. Assistance with normalizing tables
    By racheliza79 in forum Database Design
    Replies: 3
    Last Post: 08-26-2010, 04:20 PM
  4. Normalizing a table
    By racheliza79 in forum Database Design
    Replies: 3
    Last Post: 08-20-2010, 08:40 PM
  5. Replies: 4
    Last Post: 08-12-2010, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums