Quantcast
Viewing all articles
Browse latest Browse all 3592

How to build a two-level "where used" query with Query Builder

I can get some basic queries working using Query Builder, but much of it is still a matter of much trial and error for me. I am trying to build a query which will give me results on the following structure:

Image may be NSFW.
Clik here to view.
structure.png

 

The structure has three levels: Caring Unit, Structure and Member, all of which are custom Parts. I can get a report which will give me Caring Unit and Structure combinations, or Structure and Member combinations, but not all three. I am trying to answer the question, "For each member inside a shelter inside a caring unit, what are the attributes of the member, shelter and caring unit?"

 

Here are the two queries I have working so far. What must I do to combine them and get data on all three levels?

 

Members in Shelters:

Image may be NSFW.
Clik here to view.
from1.PNG

Image may be NSFW.
Clik here to view.
join1.PNG

Shelters in Caring Units:

Image may be NSFW.
Clik here to view.
from2.PNG

Image may be NSFW.
Clik here to view.
join2.PNG


Viewing all articles
Browse latest Browse all 3592

Trending Articles