如何使用ssas的渐变维
/* id 主键
names 组织架构名称 */
create table zo(id int identity(1,1) primary key not null,names varchar(50) null)
insert zo
select '华北区' union all
select '华南区'
/* id 主键
names 人员姓名
zoid 组织架构ID */
create table za(id int identity(1,1) primary key not null,names varchar(50) null,zoid int null)
insert za
select 'admin',1 union all
select 'robay',1 union all
select 'emmy',1 union all
select 'alex',2 union all
select 'linda',2
/* id 主键
zaid 人员ID
zoid 组织架构ID
num 销量 */
create table zb(id int identity(1,1) primary key not null,zaid int null,zoid int null,num int null,dates datetime null)
insert zb
select 1,1,109,'2011-05-15' union all
select 1,1,258,'2011-05-15' union all
select 1,2,300,'2011-05-16' union all
不,懂;帮,顶;学,习;赚,分。
虽然这么回贴可能会被删除。
谁他妈的删除了就是个王八蛋。
强烈抗议CSDN这种即当婊子又立贞洁牌坊的恶劣行为!!!
有本事,就封杀我!!!
理由在这里:
他妈的一帮管理员有神经病啊???
http://topic.csdn.net/u/20110422/10/1a381057-7a7b-41d9-8969-ad1f5b77f24a.html?38665
uidsversion int null, -- 联合键
num int null,--销量
dates datetime null -- 日期
)
go
insert zf
select 1,101,100,'2011-01-15' union all
select 1,101,200,'2011-01-15' union all
select 1,101,105,'2011-01-16'
go
在http://topic.csdn.net/u/20101008/15/505e0e0a-5651-404e-b435-13b3cc1f5718.html看到这样的表设计,但是 用 事实表的uidsversion 去 关联 事实表的dates between 维表的beginDate and 维表的endDate 对应的 uidsversion ,这个用ssas如何能新建关系呢??麻烦高手指点一下