- (差集合) (MDX)

2 つのセットの重複メンバを削除して差集合を返すセット演算を実行します。

構文

Set_Expression - Set_Expression

パラメータ

Set_Expression

セットを返す有効な多次元式 (MDX) 式です。

戻り値

指定した両方のパラメータによって共有されていないメンバを含むセットです。

解説

- (Except) 演算子は、Except 関数と機能的に等価です。

この演算子の使用例を以下に示します。

// This query shows the quantity of orders for all products,
// with the exception of Assembly Components, which are not
// sold.
SELECT 
   [Date].[Calendar Month of Year].Children ON COLUMNS,
   [Product].[Product Categories].[All].Children 
   - [Product].[Product Categories].[Assembly Components] ON ROWS
FROM
    [Adventure Works]
WHERE
    ([Measures].[Order Quantity])

参照

関連項目

MDX 演算子リファレンス (MDX)

ヘルプおよび情報

SQL Server 2005 の参考資料の入手