试图分析彩票数字

发布于 2025-02-10 02:27:58 字数 641 浏览 0 评论 0原文

因此,导入带有获胜彩票数量到彩票表我想知道多久一次数字是绘制的。

我只使用这样的数字来完成它

select count(id), n1
from lotto 
group by n1
having count(id) > 100
order by count(id) desc

按数字

立即将其用于所有数字(尝试过怪异的自我加入)

select lt1.count(id) as c1, 
lt1.n2 as number2,
lt2.count(id) as c2,
lt2.n3 as number3
from lotto lt1, lotto lt2 
where lt1.count(id) <> lt2.count(id)
group by number2, number3

而没有成功:(

有什么想法吗?

So import csv file with numbers of winning lottery to lottery table and i want to know how often each number is draw.

i made it only for 1 number using something like this

select count(id), n1
from lotto 
group by n1
having count(id) > 100
order by count(id) desc

Group by number

and cant figure it out to make it for all numbers at once(tried weird self join)

select lt1.count(id) as c1, 
lt1.n2 as number2,
lt2.count(id) as c2,
lt2.n3 as number3
from lotto lt1, lotto lt2 
where lt1.count(id) <> lt2.count(id)
group by number2, number3

without success :(

any idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文