IsDescendant (DMX)

gäller för: SQL Server Analysis Services

Indikerar om den aktuella noden kommer från den specificerade noden.

Syntax

  
IsDescendant(<NodeID>)  

Returtyp

En boolesk typ.

Remarks

IsDescendant används endast i SELECT FROM-modellen<>. INNEHÅLL (DMX) och SELECT FROM-modellen<>. DIMENSION_CONTENT (DMX)-frågor.

Exempel

Följande exempel returnerar alla fall som är ättlingar till den nod som anges i IsDescendant-funktionen.

SELECT * FROM [TM Decision Tree].CONTENT  
WHERE IsDescendant('00000000100')