Data Mining Extensions


Data Mining Extensions is a query language for data mining models supported by Microsoft's SQL Server Analysis Services product.
Like SQL, it supports a data definition language, data manipulation language and a data query language, all three with SQL-like syntax.
Whereas SQL statements operate on relational tables, DMX statements operate on data mining models.
Similarly, SQL Server supports the MDX language for OLAP databases.
DMX is used to create and train data mining models, and to browse, manage, and predict against them.
DMX is composed of data definition language statements, data manipulation language statements, and functions and operators.

Queries

DMX Queries are formulated using the SELECT statement.
They can extract information from existing data mining models in various ways.

Data definition language

The data definition language part of DMX can be used to
The data manipulation language part of DMX can be used to
This example is a singleton prediction query, which predicts for the given customer whether she will be interested in home loan products.

SELECT
,
PredictProbability
FROM

NATURAL PREDICTION JOIN
(SELECT
35 AS ,
'Y' AS ,
'M' AS ,
'F' AS ,
2 AS ,
2 AS ,
18 AS