Results 1 to 7 of 7
  1. #1
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249

    Multiple simple tables or one more complex table?

    I'm trying to decide if I should use multiple simpler tables in my data base, or combine those tables were possible into a single table. This either way better from a database design point? As an example, my work conducts test events. Each Test Event has a unique name and a set of unique Scenarios. These Scenarios have their own unique Parameters.

    Should I create one table called Eventsand put every Test Event and Scenario with their Parameters in it, each as a field in that table? Or should create one table to contain all of the event names and another to contain the scenarios and their parameters?

    Eventually employees will be running these test multiple times and I want to capture the data from each "run" and manipulate it.


    Thanks in advance for your time and help,



    Keith

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    The multiple related tables seems better to me.
    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
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    Thanks June7. Knowing that the Events table and the Scenarios would always be dependent, what would be the best way to relate them? Should I have the same field in both of them and do a one to one relationship (maybe with the event's name), or keep the event's name only in the Events table and do a one to many from each event to it's scenarios in the Scenario table?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    If an event can have multiple scenarios why would you even consider a 1-to-1 relationship?

    What would an event name look like? Use an autonumber field as primary key and save its value as foreign key in Scenarios table.
    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.

  5. #5
    CarlettoFed is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Dec 2019
    Posts
    255
    This
    Click image for larger version. 

Name:	Relazioni.png 
Views:	16 
Size:	9.7 KB 
ID:	41449
    could be a possible structure

  6. #6
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    Quote Originally Posted by June7 View Post
    If an event can have multiple scenarios why would you even consider a 1-to-1 relationship?

    What would an event name look like? Use an autonumber field as primary key and save its value as foreign key in Scenarios table.
    If I did a scenario table for each event is when I might use a 1 to 1, but I'm not honestly sure that would be the right way to do it either.

    Quote Originally Posted by CarlettoFed View Post
    This

    could be a possible structure
    Thanks CarlettoFed, that gives me some ideas to think about.





    Examples of event names could be: TestEvent-01a, TestEvent-07c Sprint 1, TestEvent-23

    Each of those events could have 1-20+ numbered scenarios (so all three would have a Scenario 1 for example). Each of the scenarios would have the same parameter types, but the actual parameter value would be different for each.

    In the end I want to create a form that pulls in all the different info for each event/scenario and captures that along with the test results that the employees manually enter into that form.

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    DO NOT have a scenario table for each event. And that would still be 1-to-many, not 1-to-1.
    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.

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

Similar Threads

  1. Replies: 6
    Last Post: 08-31-2019, 09:15 AM
  2. Complex problem, hopefully a simple solution?
    By g4tv4life in forum Queries
    Replies: 1
    Last Post: 03-28-2014, 11:30 AM
  3. Replies: 1
    Last Post: 04-12-2013, 03:03 PM
  4. Simple Question about Multiple Table Queries
    By Access_Headaches in forum Access
    Replies: 4
    Last Post: 02-13-2012, 08:36 AM
  5. Replies: 2
    Last Post: 08-26-2009, 10:43 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