Hello everybody!
I've been trying to find a way to create a MySQL query to find overlapping intervals, but no success so far. I've the following table as an example:
Src Dst Start_time End_time Bytes
A B 10 16 40
A B 8 13 20
A B 1 5 100
A C 9 15 40
A B 7 12 60
I would like to group by 'Src' and 'Dst' and have a result that looks like the following:
Src Dst Bytes
A B 120
A B 100
A C 40
Does anybody has any idea about how to create a query to achieve that? Any help will be appreciated!
Regards,
I've been trying to find a way to create a MySQL query to find overlapping intervals, but no success so far. I've the following table as an example:
Src Dst Start_time End_time Bytes
A B 10 16 40
A B 8 13 20
A B 1 5 100
A C 9 15 40
A B 7 12 60
I would like to group by 'Src' and 'Dst' and have a result that looks like the following:
Src Dst Bytes
A B 120
A B 100
A C 40
Does anybody has any idea about how to create a query to achieve that? Any help will be appreciated!
Regards,
Comment