笔记29 MDX查询语句示例(Northwind数据库 数据仓库名叫Northwind)

笔记29 MDX查询语句示例(Northwind数据库 数据仓库名叫Northwind)

 1 --MDX查询语句示例(Northwind数据库 数据仓库名叫Northwind)
 2 --查询意大利和德国货轮运送的货物总量
 3 //select {([measures].[quantity])} on columns,
 4 //{([ship country].[germany]),([ship country].[italy])} on rows
 5 //from [Northwind]
 6 --查询意大利和德国货轮运送的货物总量,使用 axis(0)代替on columns\on rows
 7 //select {([measures].[quantity])} on axis(0),
 8 //{([ship country].[germany]),([ship country].[italy])} on axis(1)
 9 //from [Northwind]
10 
11 --查询确定的时间的货品量
12 //select {([measures].[quantity])} on columns,
13 //{([orders].[order date].[1996.07-12 00:00:00])} on rows
14 //from [Northwind]

 

posted @ 2013-08-02 21:55  桦仔  阅读(556)  评论(0编辑  收藏  举报