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

推荐订阅源

The Hacker News
The Hacker News
GbyAI
GbyAI
雷峰网
雷峰网
罗磊的独立博客
WordPress大学
WordPress大学
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
F
Full Disclosure
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security
NISL@THU
NISL@THU
S
Schneier on Security
T
Tor Project blog
C
Cybersecurity and Infrastructure Security Agency CISA
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
P
Palo Alto Networks Blog
C
CERT Recently Published Vulnerability Notes
S
Secure Thoughts
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Last Week in AI
Last Week in AI
T
Threatpost
I
Intezer
Y
Y Combinator Blog
G
GRAHAM CLULEY
MyScale Blog
MyScale Blog
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
Scott Helme
Scott Helme
A
Arctic Wolf
Martin Fowler
Martin Fowler
Hacker News: Ask HN
Hacker News: Ask HN
V
V2EX
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
博客园 - 司徒正美
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
AI
AI
C
Cisco Blogs
T
The Blog of Author Tim Ferriss

博客园 - Love Fendi

性能优化系列---查询高cup的sql State模式学习 8.17--8.24积累 sql server 2005 analysis service step by step(二):创建时间维度 sql serve 2005 analysis service step by step(一):创建标准维度 算法练习五:求数组中第k大的数 算法练习四:求N!不溢出 算法练习三:奇偶分割 算法练习二:二分查找 数据库锁 算法练习一:最大公约数与最小公倍数 索引优化 生成验证码,同时异步获取加密后的验证码 自定义控件中与脚本资源集成的若干处理方式 一条语句删除表中某字段重复的数据 动态按需异步加载js文件 在Nhibernate中使用Json.net中出现Self referencing loop的错误的处理 JQuery学习笔记 c#委托事件 入门
sql server 2005 analysis service step by step(三):创建父子维度
Love Fendi · 2009-04-27 · via 博客园 - Love Fendi

1.什么是父子维度。

the parent-child relationship in the table that the wizard detected by the self-referencing join
on the table.
例如在Dim.Employee表中有个外键是ParentEmployeeKey,她关联的主键就是.Employee表的EmployKey建。

2. 创建父子维度

1. Open SSAS Step by Step DW.dsv.
2. Right-click the background of the Data Source View Diagram pane, and then click Add/
Remove Tables.
3. In the Add/Remove Tables dialog box, double-click dbo.DimEmployee in the Available
Objects list to move this table to the Included Objects list, and then click OK.
Notice the self-referencing relationship for the DimEmployee table in the DSV. This relationship
is indicated by the arrow leading from the DimEmployee table back to itself.
4. In Solution Explorer, right-click the Dimensions folder, click New Dimension, click
Next, clear the Auto Build check box, click Next, click the SSAS Step by Step DW DSV,
and then click Next twice.
5. Click dbo.DimEmployee in the Main Table drop-down list, click EmployeeKey in the
Key Columns list, click LastName in the Column Containing The Member Name dropdown
list, and then click Next.
6. On the Select Dimension Attributes page of the wizard, select the check box next to
ParentEmployeeKey.
You must include the attribute that defines the foreign key column of a record in a parentchild
dimension.
7. Click Next twice.

Click Next, change the name of the dimension from Dim Employee to Employee, and
then click Finish.
The Employee parent-child dimension is now added to your project.
9. In the Attributes pane of the Dimension Structure tab, right-click Dim Employee, click
Rename, and then type Employee.
10. Repeat the previous step to rename Parent Employee Key as Employees.
11. Keeping Employees selected in the Attributes pane, open the Properties window and
locate the Usage property.

3.父子维度的数据聚合。

4.管理父子维度的级别。