Skip to content

Commit 7fa1046

Browse files
authored
Update script.sql
1 parent c689247 commit 7fa1046

File tree

1 file changed

+2
-2
lines changed
  • src.save/main/java/g1601_1700/s1661_average_time_of_process_per_machine

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Write your MySQL query statement below
22
# #Easy #Database #2023_08_16_Time_429_ms_(79.06%)_Space_0B_(100.00%)
3-
select act1.machine_id,round(avg(act2.timestamp-act1.timestamp),3) as processing_time from activity act1 join activity act2 on act1.machine_id=act2.machine_id
3+
select act1.machine_id,round(avg(act2.timestamp-act1.timestamp),3) as processing_time from activity act1 join activity act2 on act1.machine_id=act2.machine_id
44
where act1.process_id = act2.process_id and act1.activity_type ='start'
5-
and act2.activity_type = 'end' group by act1.machine_id;
5+
and act2.activity_type = 'end' group by act1.machine_id;

0 commit comments

Comments
 (0)