SET_UNIONS
の集計関数は、複数割当属性を取得し、その属性からのすべての値の結合であるセットを構成します。
SET_UNIONS
関数の構文は、次のとおりです:
SET_UNIONS(<multi-assign_attribute>)
属性のデータ型は設定データ型である必要があります(複数割当文字列属性の場合のmdex:string-set
など)。
この関数はSELECT
句でのみ使用できます。
SET_UNIONSの例
RETURN results AS SELECT SET_UNIONS(Body) AS bodyUnion FROM WineState GROUP BY WineType ORDER BY WineType
WineType bodyUnion ------------------------------------------- | Bordeaux | { Silky, Tannins } | | Brut | { Robust } | | Chardonnay | { } | | Merlot | { Fruity } | | Pinot Noir | { Supple } | | Red | { Robust, Silky, Tannins } | | White | { Firm, Fresh, Robust } | | Zinfandel | { Robust, Tannins } | -------------------------------------------
|