ASP问题:分类统计问题求教(50分)满意+(50)
比如:+------------+---------------+---------------------------+|ID|Classid|Title|+-----...
比如:
+------------+---------------+---------------------------+
| ID | Classid | Title |
+------------+---------------+---------------------------+
| 1 | 3 | TitleString |
+------------+---------------+---------------------------+
| 2 | 3 | TitleString |
+------------+---------------+---------------------------+
| 3 | 3 | TitleString |
+------------+---------------+---------------------------+
| 4 | 3 | TitleString |
+------------+---------------+---------------------------+
| 5 | 3 | TitleString |
+------------+---------------+---------------------------+
| 6 | 3 | TitleString |
+------------+---------------+---------------------------+
| 7 | 1 | TitleString |
+------------+---------------+---------------------------+
| 8 | 2 | TitleString |
+------------+---------------+---------------------------+
| 9 | 4 | TitleString |
+------------+---------------+---------------------------+
| 10 | 3 | TitleString |
+------------+---------------+---------------------------+
| 11 | 3 | TitleString |
+------------+---------------+---------------------------+
| 12 | 3 | TitleString |
+------------+---------------+---------------------------+
| 13 | 3 | TitleString |
+------------+---------------+---------------------------+
| 14 | 3 | TitleString |
+------------+---------------+---------------------------+
| 15 | 5 | TitleString |
+------------+---------------+---------------------------+
| 16 | 3 | TitleString |
+------------+---------------+---------------------------+
把在classid中占比重大的数据统计出来,结果:3
求一算法,感谢! 展开
+------------+---------------+---------------------------+
| ID | Classid | Title |
+------------+---------------+---------------------------+
| 1 | 3 | TitleString |
+------------+---------------+---------------------------+
| 2 | 3 | TitleString |
+------------+---------------+---------------------------+
| 3 | 3 | TitleString |
+------------+---------------+---------------------------+
| 4 | 3 | TitleString |
+------------+---------------+---------------------------+
| 5 | 3 | TitleString |
+------------+---------------+---------------------------+
| 6 | 3 | TitleString |
+------------+---------------+---------------------------+
| 7 | 1 | TitleString |
+------------+---------------+---------------------------+
| 8 | 2 | TitleString |
+------------+---------------+---------------------------+
| 9 | 4 | TitleString |
+------------+---------------+---------------------------+
| 10 | 3 | TitleString |
+------------+---------------+---------------------------+
| 11 | 3 | TitleString |
+------------+---------------+---------------------------+
| 12 | 3 | TitleString |
+------------+---------------+---------------------------+
| 13 | 3 | TitleString |
+------------+---------------+---------------------------+
| 14 | 3 | TitleString |
+------------+---------------+---------------------------+
| 15 | 5 | TitleString |
+------------+---------------+---------------------------+
| 16 | 3 | TitleString |
+------------+---------------+---------------------------+
把在classid中占比重大的数据统计出来,结果:3
求一算法,感谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询