Content deleted Content added
-caps |
No edit summary |
||
(10 intermediate revisions by 9 users not shown) | |||
Line 1:
{{short description|Query language}}
'''Data Mining Extensions''' (DMX) is a query language for [[data mining]] models supported by [[Microsoft]]'s [[SQL Server Analysis Services]] product.▼
{{More citations needed|date=September 2022}}
▲'''Data Mining Extensions''' ('''DMX''') is a [[query language]] for [[data mining]] models supported by [[Microsoft]]'s [[SQL Server Analysis Services]] product.<ref>{{Cite web |title=Sql server - Explain how to use DMX-the data mining query language |url=https://www.careerride.com/data-mining-query-language.aspx |access-date=2022-08-23 |website=www.careerride.com}}</ref>
Like [[SQL]], it supports a [[data definition language]] (DDL), [[data manipulation language]] (DML) and a [[data query language]] (DQL), all three with SQL-like syntax. Whereas SQL statements operate on relational tables, DMX statements operate on data mining models. Similarly, [[Microsoft SQL Server]] supports the [[Multidimensional Expressions|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 (DDL) statements, data manipulation language (DML) statements, and functions and operators.
==
DMX Queries are formulated using the <code>SELECT</code> statement.
They can extract information from existing data mining models in various ways.
== Data
The [[
* Create new data mining models and mining structures - <code>CREATE MINING STRUCTURE, CREATE MINING MODEL</code>
* Delete existing data mining models and mining structures - <code>DROP MINING STRUCTURE, DROP MINING MODEL</code>
Line 18 ⟶ 16:
* Copy data from one mining model to another - <code>SELECT INTO</code>
== Data
The
* Train mining models - <code>INSERT INTO</code>
* Browse data in mining models - <code>SELECT FROM</code>
* Make predictions using mining model - <code>SELECT ... FROM PREDICTION JOIN</code>
== Example: a prediction query ==
This example is a singleton prediction query, which predicts for the given customer whether she will be interested in home loan products.
<
SELECT
[Loan Seeker],
Line 33 ⟶ 31:
[Decision Tree]
NATURAL PREDICTION JOIN
(SELECT
35 AS [Age],
'Y' AS [House Owner],
Line 42 ⟶ 40:
18 AS [Total Years of Education]
)
</syntaxhighlight>
== See also ==
*[[XML for Analysis]]
==
{{Reflist}}
== External links ==
*[http://msdn2.microsoft.com/en-us/library/ms132058.aspx Data Mining Extensions (DMX) Reference], (at [[MSDN]])
|