|
patoskyApr 26, 2014
1
count(score) group by documentID
|
|
3
@patosky select documentID, sum(score) as orScore from myIndex where term='children' or term='infant' group by documentID;
|
|
coolicerApr 26, 2014
7
你用concat_group和group by将它分组,重复的用distinct去掉。结果出来了再去自己计算。
大概是这样的结果: 123 5,3 xxx 1,2,3,4 ... 只能帮到这里了 |
|
coolicerApr 26, 2014
8
打完发现已经有几个回答了 = =
|
|
10
@troyl select documentID, cast(exp(sum(log(score))) as SIGNED) from myIndex group by documentID
|