我试图执行这个查询,但我不明白它有什么问题。
SELECT {[Measures].[Internet Sales Amount],
[Measures].[Reseller Sales Amount]} ON COLUMNS,
[Product].[Product].[Product].Members ON ROWS
FROM [AdventureWorks2008R2]
我收到错误消息:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'Measures'.
我以为是“{}”并将它们更改为“()”,然后我收到了这条消息:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ','.
--- 编辑我在错误的地方编写查询,但现在我收到了另一条消息:
Executing the query ...
Query (3, 10) The MEMBERS function expects a hierarchy expression for the argument. A member expression was used.
Execution complete
查询:
SELECT {[Measures].[Internet Sales Amount] ,
[Measures].[Reseller Sales Amount]} ON COLUMNS,
{[Product].[Product].[Product].Members} ON ROWS
FROM [Adventure Works]