码迷,mamicode.com
首页 > 其他好文 > 详细

自制小程序根据遗漏次数选择双色球号码

时间:2014-12-30 16:50:34      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:

-- 红球遗漏次数分析图
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)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!