日期:2014-05-18 浏览次数:20480 次
Select x,y,z,N1,N2,N3....From TA1,A,B
select sum(case when col1 <=100 then 1 else 0 end) as [0--100], sum(case when col1 between 101 and 1000 tnen 1 else 0 end) as [101--1000], ..... from tbl