共用方式為


PredictNodeId (DMX)

傳回案例分類之節點的 Node_ID。

語法

PredictNodeId(<scalar column reference>)

適用於

純量資料行。

傳回類型

<scalar expression>

範例

下列範例傳回指定的個人是否可能購買腳踏車,也傳回他們最可能存在的節點的 nodeID。

SELECT
  [Bike Buyer],
  PredictNodeId([Bike Buyer])
From
  [TM Decision Tree]
NATURAL PREDICTION JOIN
(SELECT 28 AS [Age],
  '2-5 Miles' AS [Commute Distance],
  'Graduate Degree' AS [Education],
  0 AS [Number Cars Owned],
  0 AS [Number Children At Home]) AS t

接著,您可以使用下列陳述式來判斷節點包含什麼:

SELECT 
  NODE_CAPTION 
FROM 
  [TM Decision Tree].CONTENT
WHERE NODE_UNIQUE_NAME= '00000000100'