Skip to content

Commit

Permalink
Time: 637 ms (14.41%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Jun 1, 2024
1 parent b52366b commit 5d25765
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Write your MySQL query statement below
SELECT DISTINCT machine_id, ROUND((SELECT AVG(timestamp) FROM Activity a2 WHERE a2.machine_id = a1.machine_id AND activity_type = 'end')-(SELECT AVG(timestamp) FROM Activity a2 WHERE a2.machine_id = a1.machine_id AND activity_type = 'start'),3) AS processing_time FROM Activity a1;

0 comments on commit 5d25765

Please sign in to comment.