Defining a Property Graph
Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API
A property graph tells Data 360 SQL how your Data 360 objects connect.
- Customers, orders, and products become vertices.
- “This customer placed this order” and “this order includes this product” become edges.
- Selected object fields become properties that you can filter or return.
You must define the graph in the SQL statement that queries it. Graph definitions can’t be persisted and referenced in other SQL statements.
EDGE TABLES is a synonym for RELATIONSHIP TABLES.
Use these clauses to turn Data 360 objects into graph elements.
<table>is the Data 360 object, such asssot__Individual__dlm. It can also be a CTE or a parenthesized subquery when you need a filtered subset of records.AS <alias>gives the element a new name. TheREFERENCESclause in an edge table definition uses the alias, not the original table name.KEYidentifies each record. Use the object’s ID field. A key can list more than one field when one field isn’t unique. The listed fields must exist on the source and be distinct.LABELis the name you use later inMATCH, such asindividualorproduct. More than one table can use the same label. RepeatLABELon the same table to give that table more than one label. EachLABELon a table can list its own properties. If you omitLABEL, Data 360 SQL uses the table alias, or name if no alias is given.
SOURCE KEYis the field that points to the starting vertex. In the commerce graph,ssot__SoldToCustomerId__cpoints to the customer, andssot__SalesOrderId__cpoints to the order.DESTINATION KEYis the field that points to the ending vertex.ssot__Id__con the Sales Order points to that order vertex, andssot__ProductId__cpoints to the product.- The number of source or destination fields must match the referenced vertex key, and the types must be comparable. The optional column list after
REFERENCESmaps those fields to vertex key fields by position. The listed fields must be key columns of that vertex. If you omit the list, Data 360 SQL uses the vertex key in declared order.
If an edge’s source or destination is NULL or doesn’t match a vertex, Data 360 SQL leaves that edge out of the results. That isn’t an error.
Start with an explicit list of the fields you need, and give them short names such as name or quantity. Later queries use those property names, not the original ssot__... field names.
When you want every field, use PROPERTIES ARE ALL COLUMNS. Use EXCEPT to hide fields you don’t want as properties, or NO PROPERTIES when the table is only a connection. If you expose a field without an alias, MATCH and COLUMNS use the original field name, such as i.ssot__FirstName__c.
This graph answers “which products did this customer order?”
Read the MATCH clause as a walk: start at a customer, follow the order they placed, then follow the line item to the product.
Use PROPERTIES ARE ALL COLUMNS when you want every field. Use EXCEPT to hide IDs. Use NO PROPERTIES when the table is only a connection. Fields exposed without aliases keep their original names, such as i.ssot__FirstName__c.