File tree 2 files changed +7
-2
lines changed
05- Average Time of Process per Machine
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ Let's rephrase the problem statement to make our life easier.
39
39
<br >
40
40
For every <code >machine</code > evaluate the following
41
41
42
- ![ equation] ( https://latex.codecogs.com/gif.latex?round%28%20%5Cfrac%7B%28timestamp_%7Bend%7D%29%20-%20sum%28timestamp_%7Bstart%7D%29%7D%7Bcount%28process%29%7D%20%2C%203%29 )
42
+ $$
43
+ round( \frac{(timestamp_{end}) - sum(timestamp_{start})}{count(process)} , 3)
44
+ $$
45
+
43
46
<br >
44
47
The easiest way is to solve this problem is to use aggregation functions.
45
48
<br >
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ Let's rephrase the problem statement to make our life easier.
40
40
<br >
41
41
for each user divide the number of confirmed message with the total requested messages.
42
42
43
- ![ equation] ( https://latex.codecogs.com/gif.latex?round%28%5Cfrac%7Bcount%28confirmed_messages%29%7D%7Bcount%28messages%29%7D%20%2C%202%29 )
43
+ $$
44
+ round(\frac{count(confirmed_messages)}{count(messages)} , 2)
45
+ $$
44
46
<br >
45
47
First, count the total requested messages for each user. we can use <code >COUNT()</code > function to evaluate this easily.
46
48
<br >
You can’t perform that action at this time.
0 commit comments