|
- transform first(日) select null from (
- select CHOOSE(WEEKDAY(日期),"日","一","二","三","四","五","六") as 星期,datepart("ww",日期) as 周,日 FROM (select (select f1 from [sheet1$d1:d1])&"/"&日&"/"&(select f1 from [sheet1$b1:b1]) as 日期,日 from (
- select 1 as 日 from [Sheet1$b1:b1] union
- select 2 from [Sheet1$b1:b1] union
- select 3 from [Sheet1$b1:b1] union
- select 4 from [Sheet1$b1:b1] union
- select 5 from [Sheet1$b1:b1] union
- select 6 from [Sheet1$b1:b1] union
- select 7 from [Sheet1$b1:b1] union
- select 8 from [Sheet1$b1:b1] union
- select 9 from [Sheet1$b1:b1] union
- select 10 from [Sheet1$b1:b1] union
- select 11 from [Sheet1$b1:b1] union
- select 12 from [Sheet1$b1:b1] union
- select 13 from [Sheet1$b1:b1] union
- select 14 from [Sheet1$b1:b1] union
- select 15 from [Sheet1$b1:b1] union
- select 16 from [Sheet1$b1:b1] union
- select 17 from [Sheet1$b1:b1] union
- select 18 from [Sheet1$b1:b1] union
- select 19 from [Sheet1$b1:b1] union
- select 20 from [Sheet1$b1:b1] union
- select 21 from [Sheet1$b1:b1] union
- select 22 from [Sheet1$b1:b1] union
- select 23 from [Sheet1$b1:b1] union
- select 24 from [Sheet1$b1:b1] union
- select 25 from [Sheet1$b1:b1] union
- select 26 from [Sheet1$b1:b1] union
- select 27 from [Sheet1$b1:b1] union
- select 28 from [Sheet1$b1:b1] union
- select 29 from [Sheet1$b1:b1] union
- select 30 from [Sheet1$b1:b1] union
- select 31 from [Sheet1$b1:b1])
- ) where isdate(日期)
- ) group by 周 pivot "星期"&星期 in ("星期日","星期一","星期二","星期三","星期四","星期五","星期六")
复制代码
[ 本帖最后由 wudixin96 于 2011-5-5 12:15 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
评分
-
2
查看全部评分
-
|