惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
L
LangChain Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
V
V2EX

博客园 - 金大侠

基于Extjs web设计器 Sqlserver 差异备份 DataTable使用方法总结 大话prototype Js生成组织结构图 关于读取windows域的用户最后登录时间 经典javascript 一行文字显示不了,用...替代解决方案 .net 发送邮件 .net生成略缩图 将word转换成其它文件 数据挖掘 Web 控件库 客户端访问WebService Smart Client 解决导出Excel格式问题 泛型学习 asp.net优化方案 windows2008 IIS7.0使用手记 图片推理1
SQL Server 2005 在MDX中的新特性
金大侠 · 2009-07-01 · via 博客园 - 金大侠

SQL Server 2005 MDX的核心概念
– 多维数据集不再是属性层次的结果(Product)
• 维度成员属性不单独存在多维数据集:
– There are no Female customers named Joakim. Therefore,
the tuple (Name.Joakim, Gender.Female) does not exist.
• 查询可以请求不存在的单元格:
– 空单元格总是返回
– 这些空单元格不能写入

认为多维数据集是一个大的多维Excel工作表
• 每一个单元格数据来自潜在的数据源或公式:
– Data for leaf cells (fact data)
– 内部公式去聚合非叶子单元格( non-leaf cells )
– 用户自定义公式(MDX Script) 指定怎样计算单元
• 最后写入单元格有效(Last writer to a given cell wins )
– More on this later…

设置WHERE 子句
Select Measures.Sales…
Where (Customers.Country.USA,
Customers.Country.Canada)
– 返回美国和加拿大的销售数量
– ‘OR’关键字等效结果:
• Select <column> From <table> Where <cond1> OR <cond2>
=
• Select <set> on 0 From <cube> Where (<tuple1>, <tuple2>)