Echarts score statistics interval data

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 operation in line with the results and two or more SELECT statements.

 

 

Guess you like

Origin www.cnblogs.com/zoli/p/12120984.html