Just a blog
发布时间:2011-05-25 15:45:44
------------------------------------------------------------------------------------ Author : htl258(Tony)-- Date : 2010-06-25 22:23:18-- Version: Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86) -- Jul 9 2008 14:43:34 -- Copyright (c) 1988-2008 Microsoft Corporation.........【阅读全文】
发布时间:2011-05-04 14:53:06
----集中度查询1,分组,该组数据60%以上出现的值进行显示,否则不显示2,值的小数只保留一位select name,value_cut,pct,left(convert(varchar,value_cut),convert(int,(pct/0.6))*18) Percent60--replace(convert(varchar,convert(int,(pct/0.6))*value),'0','') as Percent60 convert(decimal(13.1),value)f.........【阅读全文】