Actual start / end time columns are representing instruction start/end dates.
But real instruction proceeds until both Min, Aim or Max changes.
So, I need to group by the raws as per Min-Aim and Max group.
I can't use directly them as group by, because 3 months ago and this month can have same Min-Aim-Max.
Name | ActualStartTime | ActualEndTime | FLOW_SUM | LIMS_AVG | Min | Aim | Max |
---|---|---|---|---|---|---|---|
DOI | 10:15:25.793 | 18:30:53.027 | 5884 | 148 | 140 | 155 | 160 |
DOI | 18:30:53.027 | 01:14:50.177 | 2170 | 149 | 140 | 155 | 160 |
DOI | 01:14:50.177 | 11:18:58.383 | 3008 | 148 | 140 | 145 | 150 |
For example in the screenshot; Row number 1,2 are in the same instruction, need to sum flow_sum and average lims_avg Row number 3 is an instruction itself Row number 4,5,6,7 is an instruction
Somehow, after ordered as below, I need to create a relationship with 1 previous raw, then another raw until I find a different tripple Min-Aim_Max.
How can I query that?