Forum Discussion

IvanWeiss's avatar
IvanWeiss
Qrew Captain
6 years ago

Multiple Relationships between tables

So currently I have a Projects table and a Company table.  A company has many projects.  I also have an offices table and each Company has many offices.  I need to also store billing and shipping information.  I am torn on making these free form fields or relationships.  I think a relationship is the right way to go....

So do I create another relationship between Companies and Projects since it is independent of the initial link or should I create a many to many relationship?  I think I create multiple relationships...  One for the Project to Company primary relationship, another one to many for the bill to and another one to many for the ship to....

Thoughts on that?

------------------------------
Ivan Weiss
------------------------------
  • You have not actually stated what you goal is,  but I assume that you need Office information down on the Project.

    I would just make a relationship where 1 Office has Many Projects and make that a Conditional drop down after based on the [Related Company] of the Project.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    markshnier2@gmail.com
    ------------------------------
    • IvanWeiss's avatar
      IvanWeiss
      Qrew Captain
      Mark,

      As mentioned in the first post I need to record the Bill To and Ship to information in the project.  This might be different from the Company contact we are dealing with for the project itself.

      For example, the project might be Boeing in Renton WA but we might be billing Boeing in Seattle WA.  and shipping to Boeing in Renton WA.  I need to have those three independent sets of addresses stored

      It also could be a project for Boeing in Renton WA, billing JLL in Chicago IL and shipping to Boeing in Renton WA.  So multiple combinations are possible

      ------------------------------
      Ivan Weiss
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        I'm not sure of all the tables and relationships in your app, but basically you will need to have a table of those Bill To Ships to's somewhere.  Not sure if that is your "Offices Table".  The have a Relationship to look those up down to your Project.  Then figure out what you want to use for a Conditional Drop down to only offer up relevant Offices.  Any field that you can coax down to the project can be used to filter the conditional drop down.

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        markshnier2@gmail.com
        ------------------------------