Solved

Relationships

Posted on 2015-01-28
6
78 Views
Last Modified: 2015-01-28
Hello experts, I have a checklist for each agreement.  There are 5 agreements.   Shouldn't I make one table for tblChecklist that contains ALL records and have a combo box for the selection of which agreement the checklist belongs to?  

Someone posed to me separate tables and I don't think I can do this because I don't see how.  If I wanted to develop a query for ALL checklist records I would have to somehow relate them in the query builder window (ie define the relationship).    At least I think.  If not there would be duplicates.

How would an expert do this?  One table or separate?  As I mentioned the data is similar in that each is a checklist item but I have 5 agreements.  The only real difference is one item is a checklist item in agreement 1 and another might be tom agreement 2.  Etc etc.

Thank you
0
Comment
Question by:pdvsa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 7

Expert Comment

by:Robert Sherman
ID: 40575098
Could you elaborate a bit on what you mean by "checklist" and "agreement".  It's hard to follow what quantity of each you have.   Perhaps provide a few fake/sample records to demonstrate.
0
 
LVL 84
ID: 40575101
Not much to go on, but:

What does a Checklist contain? Are these items which a user would check off, like "Completed Initial Inquiry", "Perform Field Visit", etc?

Can an Agreement be associated with more than one Checklist?

Can a Checklist be associated with more than one Agreement?
0
 
LVL 37

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40575257
Are you saying that you have 5 agreement tables?  If so, you need 5 checklist tables.

In reality though you should probably have one agreement table and onechecklist table.  Then you need a table that is a junction table so you can store the answer to the checklist for a specific agreement.
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40575570
Like the other have stated, ...we need more info.
Is there, ... and wil there always be, only 5 agreements?
Is the "Checklist" one entiy?, ...or is a checkilst a set of enties (1 agreement with one checklist of multiple items)
...etc
Can you provide a detailed explanation of Agreements and Checklists, using a real world scenario?
But to me, ...it seems like a Many-To-Many...
Something like this roughly...?

tblAgreements
aID
aDate
...

tblChecklists
cID
cDate
...

tblChecklistItems (Junction Table)
ciID
aID
cID
...

JeffCoachman
0
 

Author Comment

by:pdvsa
ID: 40575758
Hello and thanks for the responses.

Answer:  I do not have the agreements in the DB.  I will though.

The junction table is the solution and it makes sense to me.

Thank you
0
 

Author Closing Comment

by:pdvsa
ID: 40575760
Thank you
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question