Features · Query and explore
Query builder
Joins suggested from relationships, fields and filters, as a list or a diagram.

Video coming soon.
From the article Build a Data Cloud query without remembering the join keys (part 5 of the series).
The hardest part of a Data Cloud query is rarely the SQL. It is the join. Contact Point Email joins Individual on ssot__PartyId__c, a unified individual joins its source records through a link object, and an engagement object has its own field pointing at the person. I know a few of these by heart, and for the rest I used to open the data model in another tab.
Your org already knows every one of those relationships. The Query builder in Data 360 Inspector uses them, so you can click objects together and get a correct join without looking anything up.
Add objects, get the joins
The page has three parts: the objects on the left, the steps of the query in the middle, and the generated SQL on the right. The left side lists every object of the data space, grouped as Data model objects, Data lake objects and Calculated insights, with a Search all objects box. An object already in the query has a green tick next to it.
Click an object to add it. The first one is the starting object, and it gets the alias t1. Each object after that is joined to an earlier one, with the join already filled in.

The builder fills in the join like this:
- It picks the earlier object your data model relates the new one to, and the last one added when nothing relates them.
- It uses the relationship from the metadata for the condition.
- When there is no relationship, it looks for a shared field, such as the earlier object's primary key against a field of the same name.
If it finds nothing, it says so ("No join to suggest between t1 and t2: pick the fields that hold the same value") and leaves the condition for you to pick. A join that is not complete shows an amber border and "Join condition incomplete", and Run waits until it is fixed.
Step 1: query structure
Each object in Step 1 · Query structure is a card with its alias, label, API name and kind. In my org, adding Individual, Contact Point Email and Website Engagement gave two LEFT JOINs to Individual, on ssot__PartyId__c and on ssot__IndividualId__c, without my picking a field. On every card after the first, you choose:
- The join type: LEFT JOIN keeps every row of the earlier object, and INNER JOIN keeps only the rows that match.
- Which earlier object it joins to.
- One or more conditions, each a field of the earlier object, an operator and a field of this one, combined with AND or OR.
Suggest (the wand icon) fills in the join again from the metadata, which is handy after you change which object a card joins to. The arrows move a card up or down, within what the joins allow, and the cross removes it.
Step 2: output fields
Step 2 · Output fields lists the fields of each object with a checkbox, a filter box, All and None, and a count such as "3 of 47". Every field is ticked when you add an object, so the first thing I do is press None and tick the ones I need.
Below the fields, Add computed column takes an expression and a name, for example COUNT(*) as people or UPPER(t1.ssot__FirstName__c) as first_name.
Step 3: filters
Step 3 · Filters adds conditions on any field of any object in the query. Besides =, ≠ and the comparisons, the operators read as plain words: contains, starts with, ends with, is one of, is not one of, is empty, is not empty, and in the last N days. With more than one filter, you choose whether rows must match all of them (AND) or any of them (OR).
In the last N days is the one I use with engagement objects, because reading only recent events keeps the query fast. It becomes >= CURRENT_DATE - INTERVAL 'N days' in the SQL.
Step 4: options
Step 4 · Options has DISTINCT rows, LIMIT (100 to start with; 0 or empty means no limit), Order by with ascending or descending, and Group by. With Group by, the output becomes the grouped fields and the computed columns, and Step 2 says so, which is how you get a count per data source or per email domain.
The SQL, and what to do with it
The Generated SQL panel updates with every click. Its buttons are:
- Copy, for the SQL on its own.
- Save as query, which saves it with the SQL page's saved queries.
- Count rows, which wraps the query in a
COUNT(*)and says how many rows it returns without the limit. - Open in a SQL tab, for when you want to keep editing by hand.
- Run, which shows the results under the SQL.
The results table is the same as on the SQL page: sort, filter, click a cell, View all details on an Individual ID column. Run loads up to 1,000 rows, and Download CSV fetches all of them, up to 500,000.
The SQL panel can sit on the Right, at the Bottom, or be hidden with Hide SQL. Every pane and step can be resized by dragging its edge, and the SQL panel and the results each open full screen.
List or Visual
List shows the steps as described above. Visual shows the same query as a diagram: one box per object and one line per join, with the join type and condition on the line.

Drag the background to move around, use the wheel or the Zoom in and Zoom out buttons to zoom, and drag a box to move it. Fit puts the whole diagram in view. Click a box to open its card and change its join there. Lay out again, the last of the four buttons, puts the boxes back in order. The card sits beside the diagram when there is room for both, and under it when there is not, as with the SQL panel on the right in a laptop-sized window. The diagram keeps its width either way and refits on its own when its box changes size, for example after Hide SQL.
Switching between List and Visual changes nothing in the query, so I build in List and switch to Visual when I want to check that every join hangs off the object I meant.
Drafts
The query you are building is kept in your browser as a draft, one per org and data space, and the line next to the title says "Draft kept in this browser". Leave the page, come back tomorrow, and it is still there. New query starts again from an empty page.
Limits
A few things to know:
- Suggested joins are only as good as the relationships in your data model. Two objects with no relationship and no shared field need the fields picked by hand.
- When there are several relationships between two objects, the builder suggests the first one. Check it on objects that link in more than one way, such as an engagement object with both an individual and a contact point field.
- A join compares fields of the two objects. Joins on an expression, subqueries and UNION need Open in a SQL tab.
- Filters on dates and numbers are written from the field type. When a value does not look right in the SQL, the SQL check on the SQL page will usually say why.