摘要: SELECT callinamount,AVG(n*1.0)OVER(PARTITION BY r)FROM(SELECT callinamount , (RANK() OVER ( ORDER BY callinamount )) r , (ROW_NUMBER() OVER ( ORDER BY callinamount )) nFROM #t) aORDER BY callinamount 阅读全文
posted @ 2011-03-25 14:24 hesion001 阅读(162) 评论(0) 推荐(0) 编辑
摘要: /****** Description: select * from dbo.Split('100,200 300;400',', ;') return value is 4 rows table with values 100,200,300,400. ******/CREATE FUNCTION [dbo].[Split] ( @str AS NVARCHAR(1000) , @delimiters AS NVARCHAR(100) )RETURNS @t TABLE ( pos INT NOT NULL , value NVARCHAR(100) NOT NULL ) 阅读全文
posted @ 2011-01-18 10:26 hesion001 阅读(745) 评论(0) 推荐(0) 编辑
摘要: var ajax = function(){}; var IsUndefined = function(v) { return typeof v == 'undefined' ? true : false; } ajax.CreateXMLHttp = function() { if(window.XMLHttpRequest) ... 阅读全文
posted @ 2008-11-23 22:12 hesion001 阅读(190) 评论(0) 推荐(0) 编辑