如果执行以下命令,我们可以看到有6个结果。
> select competition.region, count(competition.score) as cnt from competition group by competition.region order by cnt desc;
## --Result--
CN 80
USA 60
SE 40
US 10
JP 10
KR 8
但我想要的是将第4行到最后的字段合并到一个名为“other”的字段中:
## --Result--
CN 80
USA 60
SE 40
OTHER 28
有没有办法在单个SQL中实现这一点?谢谢!