ARBでは、特定のフィールドの値のセットから値を1つ選択します。選択される値は不定ですが一定です。
ARB(<attribute>)ここで、attributeは、単一割当て属性またはセット(複数割当て属性)です。
RETURN results AS SELECT ARB(Price) AS prices FROM WineState GROUP BY WineType ORDER BY WineType
WineType prices -------------------------- | Blanc de Noirs | 16.99 | | Bordeaux: | 21.99 | | Brut | 22.99 | | Chardonnay: | 17.95 | | Merlot: | 25.99 | | Pinot Noir: | 14.99 | | Red: | 9.99 | | White: | 20.99 | | Zinfandel: | | --------------------------
RETURN results AS SELECT ARB(Body) AS bodies FROM WineState GROUP BY WineType ORDER BY WineType
WineType bodies
----------------------------------------
| Blanc de Noirs | { Firm, Robust } |
| Bordeaux: | { Silky, Tannins } |
| Brut | { Robust } |
| Chardonnay: | { } |
| Merlot: | { } |
| Pinot Noir: | { Supple } |
| Red: | { Silky, Tannins } |
| White: | { } |
| Zinfandel: | { Robust, Tannins } |
----------------------------------------