INSERT INTO MINING STRUCTURE [Market Basket]
(
[OrderNumber],[Product] (SKIP, [Model])
)
SHAPE {
OPENQUERY([ContosoRetailDW],'SELECT OrderNumber
FROM V Online Sales Order ORDER BY OrderNumber')}
APPEND
(
{OPENQUERY([ContosoRetailDW],'SELECT OrderNumber, Model FROM
dbo.V_OnlineSalesOrder ORDER BY OrderNumber, Model')
}
RELATE OrderNumber to OrderNumber
) AS [Product]
它给出了错误信息 -
OLE DB错误:OLE DB或ODBC错误:' Sales'附近的语法不正确。 42000
有什么不对?
答案 0 :(得分:0)
您的SQL语法错误。
靠近"销售"。你可能拼错了一个关系名称。