Echarts 統計分數區間數據


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 語句的結果。

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM