Data Mining Extensions: Difference between revisions

Content deleted Content added
External links: +navbox Data warehouse using AWB
No edit summary
 
(22 intermediate revisions by 18 users not shown)
Line 1:
{{short description|Query language}}
'''Data Mining Extensions''' (DMX) is a query language for [[Data Mining]] Models, much like [[SQL]] is a query language for [[relational databases]] and [[Multidimensional Expressions|MDX]] is a query language for [[OLAP]] databases. DMX syntax is more similar to SQL than MDX.
{{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==
 
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 ==
DataThe Definition[[data Languagedefinition language]] (DDL) part of DMX can be used to
* 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 Manipulationmanipulation language Language==
DataThe Manipulation[[data Languagemanipulation 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: ofa prediction query ==
This example is a singleton prediction query, which predicts for the given customer whether she will be interested in the home loan products.
<syntaxhighlight lang="tsql">
 
<code>
<pre>
SELECT
[Loan Seeker],
Line 25 ⟶ 31:
[Decision Tree]
NATURAL PREDICTION JOIN
(SELECT
35 AS [Age],
'Y' AS [House Owner],
Line 34 ⟶ 40:
18 AS [Total Years of Education]
)
</syntaxhighlight>
</pre>
</code>
 
==External linksSee also ==
*[[XML for Analysis]]
*[http://msdn2.microsoft.com/en-us/library/ms132058(en-us,VS.90).aspx Microsoft Analysis Services Data Mining BOL]
 
*[http://www.sqlserverdatamining.com SQL Server Data Mining]
==References==
*[http://blogs.msdn.com/jamiemac Jamie MacLennan's Blog]
{{Reflist}}
 
== External links ==
*[http://msdn2.microsoft.com/en-us/library/ms132058(en-us,VS.90).aspx MicrosoftData AnalysisMining ServicesExtensions Data(DMX) MiningReference], BOL(at [[MSDN]])
 
{{Data warehouse}}
{{Query languages}}
 
[[Category:Query languages]]
[[Category:Data mining and machine learning software]]
 
[[pl:Data Mining Extensions]]