自制小程序根据遗漏次数选择双色球号码
时间:2014-12-30 16:49:57
收藏:0
阅读:147
-- 红球遗漏次数分析图 select a.beforeterm,a.leaktimes, stuff( (select ‘,‘+cast(ballnum as varchar(max)) from [Lottory].[dbo].[RedBall] b where a.leaktimes = b.leaktimes for xml path(‘‘)) ,1,1,‘‘) balls from ( select beforeterm, leaktimes from [Lottory].[dbo].[RedBall] group by beforeterm, leaktimes ) a -- 篮球遗漏次数分析图 select a.beforeterm,a.leaktimes, stuff( (select ‘,‘+cast(ballnum as varchar(max)) from [Lottory].[dbo].[BlueBall] b where a.leaktimes = b.leaktimes for xml path(‘‘)) ,1,1,‘‘) balls from ( select beforeterm, leaktimes from [Lottory].[dbo].[BlueBall] group by beforeterm, leaktimes ) a
原文:http://www.cnblogs.com/zlfucku/p/4193891.html
评论(0)