Which section would you like to be your default page?
Close X
 Intuit QuickBase Home Page
Twitter Updates

A Tale of Two Tables (and a Master) – Getting a report containing data from two details tables

A few weeks ago, I was asked the following question, edited here for clarity:

 “I have a master table called Contacts. It’s related to a details table called Addresses. The Addresses table has a column called ‘current’. Only one address per contact should be marked current. There’s a third table – Donations. Contacts is a master table for Donations as well.

 What we’d like is a report of all donations, listing contact name, city and state. I’m wondering if I should create a relationship between Donations and Addresses…that does not seem right.”

So, graphically, what we have are the relationships
 Contacts ∈ Addresses
 Contacts ∈ Donations

You probably know we need to create a report in the Donations table; but how to access the address information in another (sort of related) details table?

Ultimately, in a Step 2, we need to have the one current address record’s information (from out of all the related records in the Addresses details table) to be represented in the Contacts master record. That will then enable us to create Lookup fields in the Donations details table, and hence to create the report in the Donations table.

Step 1. The way to represent text data in the Contacts table from the Addresses table is to create a new relationship in the ‘opposite direction’, in which the Addresses table is a master table to the Contacts table, which then acts as a details table. But, how would the contact record find the one correct address record to become its master?

 1.1  From the original
  Contacts (master) ∈ Addresses (details)
relationship, create a Summary field in the Contacts master table. Select, say, the “Maximum” summary function (in this particular example, other summary functions such as “Total” or “Minimum” would work as well) for the [Record ID#] field in the Addresses table, but only for address records whose [current] field is checked. Do this by setting that condition as the “Matching Criteria” for the Summary field.

 1.2  Create a new relationship in which
  Addresses (master) ∈ Contacts (details)
For this relationship, make the above Summary field in the Contacts table the Reference field to the Addresses table’s [Record ID#] key field.

 1.3  Finally, in the new relationship of step 1.2, create Lookup fields in the Contacts table for data in the Addresses table that you’d like to be represented in the Contacts table.

Now we can proceed with Step 2.

About C L Kim

Software is my first love... and being in the Product Development group here at QuickBase exposes me to opportunities to try out cool stuff.

  • Mark Shnier

    I stumbled across this technique myself out of desperation during a tricky project and posted an answer to a different question, but using the same technique of building a backwards relationship. If anyone wants to see another example, it’s posted here.
    https://www.quickbase.com/db/8emtadvk?a=dr&r=8nv&rl=nss
    Mark Shnier

    [Reply]

  • Mark Shnier

    I stumbled across this technique myself out of desperation during a tricky project and posted an answer to a different question, but using the same technique of building a backwards relationship. If anyone wants to see another example, it’s posted here.
    https://www.quickbase.com/db/8emtadvk?a=dr&r=8nv&rl=nss
    Mark Shnier

    [Reply]

blog comments powered by Disqus
QuickBase Online Database
Featured in Alltop
Meet Our Writers

Alexandra Levit

Alexandra Levit’s goal is to help people find meaningful jobs - quickly and simply - and to succeed beyond measure once they get there. Follow her @alevit.

 

Alison Green

Alison Green writes the popular Ask a Manager blog where she dispenses advice on career, job search, and management issues. She's also the co-author of Managing to Change the World: The Nonprofit Leader's Guide to Getting Results and former chief of staff of a successful nonprofit organization, where she oversaw day-to-day staff management, hiring, firing, and employee development.

 

Eva Rykr

Eva Rykr is an organizational psychology practitioner. Her passion lies in bringing a psychology perspective to the business world, with the mission of creating a high-performance environment. Follow her @EvaRykr.

 

Anita Bruzzese

Anita Bruzzese is a syndicated columnist for Gannett/USA Today on workplace issues and the author of “45 Things You Do That Drive Your Boss Crazy.” She has been on the Today show, and quoted in publications such as O, The Oprah Magazine, Glamour, Self.com and BusinessWeek.com. Her website, 45things.com, is listed on the Forbes top 100 websites for women.

 
Recent Comments
  • Alison Green - Ask a Manager:
    Ugh, yes, nail clipping!  And calling unnecessary meetings!

  • CPAlady:
    Also nail clipping :)

  • Sbelcourt:
    Is there a way you can set your ipad app for Quickbase to open in Full Site screen versus the mobile...

  • Anonymous:
    @Chase:  I don’t know what’s worse – a ridiculous comment like that or the standard...

  • Anonymous:
    @Tom S, is that you?  I actually quote you in my chapter on passion in my book, New Job, New You.  Thank...

© 1997-2010 Intuit Inc. All Rights Reserved.

Online Database VeriSign Secured Web Based Software TRUSTe Certification Online Database SAS 70 Certification

Like what you see? Get our articles on your platforms of choice:

Follow us on Twitter to get daily tweets.

Like us on Facebook to get updates in your News Feed.

Subscribe via email to get our blog posts in your inbox.