The SET_INTERSECTIONS aggregation function takes a multi-assign attribute and constructs a set that is the intersection of all of the values from that attribute.
SET_INTERSECTIONS function is:
SET_INTERSECTIONS(<multi-assign_attribute>)
where the data type of the attribute must be a set data type (such as mdex:string-set for a multi-assign string attribute).This function can be used only in SELECT clauses.
SET_INTERSECTIONS example
RETURN results AS SELECT SET_INTERSECTIONS(Body) AS bodyIntersection FROM WineState GROUP BY WineType ORDER BY WineType
WineType bodyIntersection
------------------------------------
| Bordeaux | { Silky, Tannins } |
| Brut | { Robust } |
| Chardonnay | { } |
| Merlot | { } |
| Pinot Noir | { Supple } |
| Red | { } |
| White | { } |
| Zinfandel | { Robust, Tannins } |
------------------------------------
|