首页 > 其他 > 详细

Echarts 统计分数区间数据

时间:2019-12-30 19:03:09      阅读:260      评论:0      收藏:0      [点我收藏+]

select ‘60分以下‘,count(*) from riskcontrol_inspection_task_book_item where (check_Value +0)<60 and (check_Value REGEXP ‘[^0-9.]‘)=0
union
select ‘60-70分‘,count(*) from riskcontrol_inspection_task_book_item where (check_Value +0)>=60  and (check_Value +0)<70 and (check_Value REGEXP ‘[^0-9.]‘)=0
union
select ‘70-90分‘,count(*) from riskcontrol_inspection_task_book_item where (check_Value +0)>=70  and (check_Value +0)<90  and (check_Value REGEXP ‘[^0-9.]‘)=0
union
select ‘90分以上‘,count(*) from riskcontrol_inspection_task_book_item where (check_Value +0)>=90 and (check_Value REGEXP ‘[^0-9.]‘)=0

 

SQL UNION 操作符合并两个或多个 SELECT 语句的结果。

 

 

技术分享图片

Echarts 统计分数区间数据

原文:https://www.cnblogs.com/zoli/p/12120984.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!