18922397810 1 vecka sedan
förälder
incheckning
e0b2301c5c
1 ändrade filer med 9 tillägg och 4 borttagningar
  1. 9 4
      backend/console.sql

+ 9 - 4
backend/console.sql

@@ -1,12 +1,17 @@
-select measurement_type,point_name, count(*)
+select device_part, device_point, measurement_type,point_name,min(sample_time) minTime,max(sample_time) maxTime, count(*)
 from wave_file
-where rpm>0 and measurement_type='压力' and tspluse_status>=4
-group by measurement_type,point_name
+where rpm>0
+group by device_part, device_point,measurement_type,point_name
 
 
 select point_name, measurement_type, min(sample_time) minTime,max(sample_time) maxTime, count(*)
 from wave_file
-where  point_name like '8号机组二缸%' and rpm>0
+where   rpm>0
+group by measurement_type,point_name
+
+select point_name, measurement_type,count(*)
+from wave_file
+where   rpm>0
 group by measurement_type,point_name