我有一个名为“数字”的表,有 4 列(id、N1、N2、N3),如下所示:
id = 1,2 3, 4
N1 = 22 , 14 , 13 , 15
N2 = 13 , 11 , 80 , 11
N3 = 11 , 22 , 47 , 23
我可以计算此表中各个数字的总频率吗?
(11 = 3) ** (22=2)
ETC..
对于一列,我的查询是:
"SELECT N1, COUNT(*) as Frequency FROM number GROUP BY n1 order by count(*) desc"
感谢您的帮助