Intersect (MDX)
Returns the intersection of two input sets, optionally retaining duplicates.
Syntax
Intersect(Set_Expression1 , Set_Expression2 [ , ALL ] )
Arguments
- Set_Expression1
A valid Multidimensional Expressions (MDX) expression that returns a set.
- Set_Expression2
A valid Multidimensional Expressions (MDX) expression that returns a set.
Remarks
The Intersect function returns the intersection of two sets. By default, the function removes duplicates from both sets prior to intersecting the sets.
The optional ALL flag retains duplicates. If ALL is specified, the Intersect function intersects nonduplicated elements as usual, and also intersects each duplicate in the first set that has a matching duplicate in the second set.
Example
For example, Intersect({[1994], [1995], [1996]}, {[1995], [1996], [1997]})
returns the set {[1995], [1996]}
.
See Also
Reference
Help and Information
Getting SQL Server 2005 Assistance
Change History
Release | History |
---|---|
17 July 2006 |
|