Results 1 to 3 of 3
  1. #1
    jphome is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    2

    Database Normalization thoughts

    I was wondering if someone could give me some pointers or provide some guidance on how to normalize an existing database.



    I've set up an oil lease production database that tracks monthly/yearly values.

    Essentially I have a main table with the following fields:

    oilleaseID
    oilleaseName
    and then I have fields for every single month (i.e. Jan 2013, Feb 2013, Mar 2013) for Oil Production.

    Then I've created additional tables (since I maxed out on fields in a table) for additional value types. I have additional tables for Oil Sales, Gas Production, Gas sales, Water Production, Days Produced and more) that all have fields like the main table.

    I've gotten it to work fairly decently by running an Update query to add/delete/modify to update each table whenever a new oil lease is added or changed. Basically I have the database run the Update Query once a particular form is closed after editing.

    How would I set up a database that is normalized to not have to run the Update Query. I'm afraid over time when I keep adding tables it will take the Query longer and longer to run, especially if there are a ton of records.

    I'm also running into a problem when I go to run reports that can include all the data from all tables from all years (since I have more fields than the 255 limit). I'd love to be able to set up a report that a user could just specify date ranges too instead of a static/default only range.


    Thanks for the help!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Maxing out the field limit is a strong indication of non-normalized structure. Commend you for recognizing that and wanting to fix.

    Consider:

    tblLeases
    LeaseID
    LeaseType (Oil, Gas, Water)
    etc.

    tblProduction
    LeaseID
    ProdDate
    Quantity
    Amount
    DaysProd

    Maybe this will help http://www.rogersaccesslibrary.com/
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jphome is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    2
    Thanks for the advice. I'll play around with that and see if that can work out!

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

Similar Threads

  1. is this possible (about database normalization)?
    By wannabesmart in forum Database Design
    Replies: 1
    Last Post: 05-04-2014, 01:10 AM
  2. database normalization
    By joe235 in forum Database Design
    Replies: 1
    Last Post: 05-21-2013, 08:57 PM
  3. Help with normalization for my first database
    By basstwo in forum Database Design
    Replies: 8
    Last Post: 10-02-2012, 10:25 AM
  4. Database normalization need help
    By Johev in forum Database Design
    Replies: 9
    Last Post: 03-08-2012, 09:02 AM
  5. New Educational Database - Structure & Normalization
    By alpinegroove in forum Database Design
    Replies: 4
    Last Post: 01-28-2011, 03:36 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