Results 1 to 8 of 8
  1. #1
    bolivartech is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6

    Unhappy Fixing Table Design

    I have just inherited a database with, what I consider, to be a pretty bad design. I'm eventually going to migrate it to a SQL server but before that I need to get it cleaned up.
    There are only two tables "Head of Household" and "Family" I will list out the fields.

    Head of Household
    Code:
    ID
    Last Name
    First Name
    MI
    SS#
    Sex
    Age
    Birthdate
    Street
    City
    State
    Zip
    Phone
    # in Family
    Monthly Income
    IncAmt1
    IncType1
    IncFrq1
    IncAmt2
    IncType2
    IncFrq2
    IncAmt3
    IncType3
    IncFrq3
    Family

    Code:
    ID
    Last Name
    First Name
    MI
    SS#
    Sex
    Age
    Birthdate
    IncAmt1
    IncType1
    IncFrq1
    IncAmt2
    IncType2
    IncFrq2
    IncAmt3
    IncType3
    IncFrq3
    What I'd like to do is have one table that holds the household info, another that holds the members(with a field that signifies head), and a final one for incomes. I have been trying different ways with some dummy data but I cannot seem to find an efficient way to do this. The table analyzer doesn't work like I thought it would. Any suggestions on how I should approach this?

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    It seems like table "Family" is a part of duplicate in table "head".

    I think your plan is fine.

  3. #3
    bolivartech is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6
    Well the problem is I can't seem to figure out how to approach it without losing data or relations. Right now the family table is related to the head of household table by the hoh id.

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I am not sure how data is store in the 2 tables, isn't the data family table included in the head table?

  5. #5
    bolivartech is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6
    Maybe a picture of the relation will help.


  6. #6
    bolivartech is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6
    I think I've found a method that works.

    Add HeadofHousehold(Y/N) fields to both tables
    Add MI field to Family(Member) table
    Change ID of HoH table to HeadofHouseholdID
    Append Data from HoH table to Family table
    Remove excess fields from HoH table
    Create an Income table with amt, type, frq, id, and memberid
    Add memberID to Family table
    append data from family table to income table

  7. #7
    bolivartech is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6
    Thought I should post that I figured it out. I think I was over complicating it till I started using the append queries. Thanks for the input.
    Heres a pic of the final relationship.

  8. #8
    bolivartech is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    6
    I'm glad I posted the update, caught the fact I hadn't removed the extra fields from Family yet ;-)

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

Similar Threads

  1. please help to design a table
    By oas in forum Database Design
    Replies: 3
    Last Post: 02-11-2012, 08:54 AM
  2. Table Design w/ forms
    By DrossZro in forum Database Design
    Replies: 9
    Last Post: 09-07-2010, 09:35 AM
  3. need a little help fixing an SQL error...
    By markjkubicki in forum Queries
    Replies: 3
    Last Post: 08-04-2010, 06:15 AM
  4. table design: one big table vs. multiple small tables
    By lstairs in forum Database Design
    Replies: 3
    Last Post: 12-31-2009, 08:46 AM
  5. Table Design & Relationships
    By mastromb in forum Database Design
    Replies: 16
    Last Post: 12-30-2009, 10:35 PM

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