2010年2月23日

摘要: 积累一:动态交叉表行转列代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- 1 ----------------行列的转换 2 --测试环境 3 Create table #T(Date datetime,Type varchar(20),qty ... 阅读全文
posted @ 2010-02-23 15:48 MR_ke 阅读(788) 评论(2) 推荐(3)
摘要: 问题一--问题描述--第一是.关于加班时 ?的问 ?-- 公司规 ©w一周内 ³Ì多只能加班和个而 ¤é期¥|A001 5 --周五A001 7 ------------------ -- 共计 ¥[班:H,超出H ----从¨Ì次Ñ减的H),一轮 ¦Z如果还 &curr... 阅读全文
posted @ 2010-02-23 14:04 MR_ke 阅读(931) 评论(4) 推荐(2)
摘要: 1.SQL2005中row_number( )、rank( )、dense_rank( )、ntile( )函数的用法(1).row_number( )先来点数据,先建个表 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- 1 SET NOCOUN... 阅读全文
posted @ 2010-02-23 12:35 MR_ke 阅读(820) 评论(0) 推荐(2)
摘要: 1.master..spt_values表比如,输出一年的月份表,输出1000以内的自然数等等。数量连续且不超过2048。那么使用master..spt_values表就会再也方便不过了。例如输出1000以内的自然数:select number from master..spt_valueswhere type='P' and number between 1 and 1000代码Code hig... 阅读全文
posted @ 2010-02-23 10:54 MR_ke 阅读(1027) 评论(1) 推荐(2)

导航