Hi,
I write a test DMX as follows to expriment
cmd.CommandText = "SELECT FLATTENED " +
"( SELECT *, PredictStdev(BloodPressure) AS Stdev " +
"FROM PredictTimeSeries(BloodPressure, " + numTimePoints + ")" +
") " +
"FROM " + modelName;
However, after execute this command, a error show:
The syntax for 'Stdev' is incorrect. I have no idea about the reason to raise to error.
How can I fix it and why this error occur?
Any help would be welcome.
Ricky.
Stdev is a keyword in the language supported by our server. To use it as a column name, you need to use brackets:
cmd.CommandText = "SELECT FLATTENED " +"( SELECT *, PredictStdev(BloodPressure) AS [Stdev] " +
"FROM PredictTimeSeries(BloodPressure, " + numTimePoints + ")" +
") " +
"FROM " + modelName;|||
Thx Bogdan.
Regards,
Ricky
No comments:
Post a Comment