Content deleted Content added
m Bringing "External links", "See also" and "Reference" sections in line with the Manual of Style. |
No edit summary |
||
(35 intermediate revisions by 31 users not shown) | |||
Line 1:
{{short description|Query language}}
{{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.
Data Definition Language (DDL) part of DMX can be used to ▼
== Queries ==
DMX Queries are formulated using the <code>SELECT</code> statement.
They can extract information from existing data mining models in various ways.
== Data definition language ==
* 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 8 ⟶ 16:
* Copy data from one mining model to another - <code>SELECT INTO</code>
== Data manipulation language ==
▲Data Manipulation Language (DML) part of DMX can be used to
* 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:
This example is a singleton prediction query, which predicts for the given customer whether
<syntaxhighlight lang="tsql">
SELECT
[Loan Seeker],
Line 26 ⟶ 31:
[Decision Tree]
NATURAL PREDICTION JOIN
(SELECT
35 AS [Age],
'Y' AS [House Owner],
Line 35 ⟶ 40:
18 AS [Total Years of Education]
)
</syntaxhighlight>
== See also ==
*[[XML for Analysis]]
==References==
{{Reflist}}
== External links ==▼
*[http://msdn2.microsoft.com/en-us/library/ms132058
{{Data warehouse}}
{{Query languages}}
[[Category:Query languages]]
▲==External links==
[[Category:Data mining and machine learning software]]
▲[http://msdn2.microsoft.com/en-us/library/ms132058(en-us,VS.90).aspx Microsoft Analysis Services Data Mining BOL]
|