SELECT FROM <model> (DMX)
SQL Server 2012
Performs an empty prediction join, returning the most probable value or values for the specified columns. Only the content from the mining model is used to create the prediction.
The following example performs a prediction on the Amount column in the Forecasting model, returning the next four time steps. The Model Region column combines bike models and regions into a single identifier. The query uses the PredictTimeSeries (DMX) function to perform the prediction.
SELECT [Model Region], PredictTimeSeries(Amount, 4) FROM Forecasting
