zoukankan      html  css  js  c++  java
  • 自制小程序根据遗漏次数选择双色球号码

    -- 红球遗漏次数分析图
    select a.beforeterm,a.leaktimes,
    stuff(
    (select ','+cast(ballnum as varchar(max)) from [Lottory].[dbo].[RedBall] b where a.leaktimes = b.leaktimes 
    and a.beforeterm = b.beforeterm 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
    and a.beforeterm = b.beforeterm for xml path(''))
    ,1,1,'') balls
    from 
        (
        select beforeterm, leaktimes
        from [Lottory].[dbo].[BlueBall]
        group by beforeterm, leaktimes
        ) a
  • 相关阅读:
    vector详解
    笔记
    积木大赛
    codevs 1086 栈(Catalan数)
    不要把球传我
    同余方程 (codevs1200)
    最小集合
    数的计算
    产生数
    逃跑的拉尔夫
  • 原文地址:https://www.cnblogs.com/zlfucku/p/4193891.html
Copyright © 2011-2022 走看看