|
楼主 |
发表于 2011-6-22 15:53
|
显示全部楼层
- TRANSFORM last(日)
- select null from
- (
- select format(r,'aaaa') as 周,day(r) as 日,DatePart('ww',r) as 周数 from
- (select DISTINCT ?&'-'&?&'-'&r1&r2 as r from
- (select 1 as r1 from [万年历$a1:a2] union all
- select 2 from [万年历$a1:a2] union all
- select 3 from [万年历$a1:a2] union all
- select 0 from [万年历$a1:a2])a,
- (select 0 as r2 from [万年历$a1:a2] union all
- select 1 from [万年历$a1:a2] union all
- select 2 from [万年历$a1:a2] union all
- select 3 from [万年历$a1:a2] union all
- select 4 from [万年历$a1:a2] union all
- select 5 from [万年历$a1:a2] union all
- select 6 from [万年历$a1:a2] union all
- select 7 from [万年历$a1:a2] union all
- select 8 from [万年历$a1:a2] union all
- select 9 from [万年历$a1:a2])b)
- where isdate(r)
- )
- group by 周数
- pivot 周 in ('星期日','星期一','星期二','星期三','星期四','星期五','星期六')
复制代码 使用MQ可以自动更新。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
评分
-
1
查看全部评分
-
|