ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 Excel Home精品图文教程库
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
300集Office 2010微视频教程 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 5643|回复: 20

[Excel 基础应用] 【已开帖】[73期]巧用SQL,无中生有万年历。

[复制链接]

TA的精华主题

TA的得分主题

发表于 2011-4-27 12:43 | 显示全部楼层 |阅读模式
截至日期:2011年05月21日前
各参赛者得分统计在5楼
要求:


演示动画:


[ 本帖最后由 wuxiang_123 于 2011-5-21 15:42 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?免费注册

x

评分

1

查看全部评分

TA的精华主题

TA的得分主题

发表于 2011-4-27 13:00 | 显示全部楼层
下载学习下。
???
我还以为是做好的。

[ 本帖最后由 ctp_119 于 2011-4-27 13:03 编辑 ]

TA的精华主题

TA的得分主题

发表于 2011-5-4 15:23 | 显示全部楼层
请楼主过目,谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?免费注册

x

评分

1

查看全部评分

TA的精华主题

TA的得分主题

发表于 2011-5-5 10:33 | 显示全部楼层
  1. transform first(日) select null from (
  2. select CHOOSE(WEEKDAY(日期),"日","一","二","三","四","五","六") as 星期,datepart("ww",日期) as 周,日 FROM (select (select f1 from [sheet1$d1:d1])&"/"&日&"/"&(select f1 from [sheet1$b1:b1]) as 日期,日 from (
  3. select 1 as 日 from [Sheet1$b1:b1] union
  4. select 2 from [Sheet1$b1:b1] union
  5. select 3 from [Sheet1$b1:b1] union
  6. select 4 from [Sheet1$b1:b1] union
  7. select 5 from [Sheet1$b1:b1] union
  8. select 6 from [Sheet1$b1:b1] union
  9. select 7 from [Sheet1$b1:b1] union
  10. select 8 from [Sheet1$b1:b1] union
  11. select 9 from [Sheet1$b1:b1] union
  12. select 10 from [Sheet1$b1:b1] union
  13. select 11 from [Sheet1$b1:b1] union
  14. select 12 from [Sheet1$b1:b1] union
  15. select 13 from [Sheet1$b1:b1] union
  16. select 14 from [Sheet1$b1:b1] union
  17. select 15 from [Sheet1$b1:b1] union
  18. select 16 from [Sheet1$b1:b1] union
  19. select 17 from [Sheet1$b1:b1] union
  20. select 18 from [Sheet1$b1:b1] union
  21. select 19 from [Sheet1$b1:b1] union
  22. select 20 from [Sheet1$b1:b1] union
  23. select 21 from [Sheet1$b1:b1] union
  24. select 22 from [Sheet1$b1:b1] union
  25. select 23 from [Sheet1$b1:b1] union
  26. select 24 from [Sheet1$b1:b1] union
  27. select 25 from [Sheet1$b1:b1] union
  28. select 26 from [Sheet1$b1:b1] union
  29. select 27 from [Sheet1$b1:b1] union
  30. select 28 from [Sheet1$b1:b1] union
  31. select 29 from [Sheet1$b1:b1] union
  32. select 30 from [Sheet1$b1:b1] union
  33. select 31 from [Sheet1$b1:b1])
  34. ) where isdate(日期)
  35. ) group by 周 pivot "星期"&星期 in ("星期日","星期一","星期二","星期三","星期四","星期五","星期六")
复制代码

[ 本帖最后由 wudixin96 于 2011-5-5 12:15 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?免费注册

x

评分

2

查看全部评分

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-5-21 12:16 | 显示全部楼层
2楼不得分,三楼和四楼正解,技术各+2

我的答案:


注意将链接字符串:HDR=YES改为HDR=NO。意思是第一行不作为字段标题。


[ 本帖最后由 wuxiang_123 于 2011-5-21 12:19 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?免费注册

x

TA的精华主题

TA的得分主题

发表于 2011-5-21 16:08 | 显示全部楼层
学习来了,原来你的方法是这样啊。

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-5-21 16:11 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册

回复 6楼 wudixin96 的帖子

是不是很失望

TA的精华主题

TA的得分主题

发表于 2011-5-21 16:20 | 显示全部楼层
也不早点告诉我有技术分得的,我以为只有财富得一下,哎,损失了你另外一个题了

TA的精华主题

TA的得分主题

发表于 2011-5-23 18:11 | 显示全部楼层
版主的两个方法都得不出结果,不知道是什么原因?

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-5-24 13:48 | 显示全部楼层

回复 9楼 minjiwei 的帖子

估计你是没有将HDR=YES改为HDR=NO
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-5-4 08:00 , Processed in 0.035999 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表