Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: ronaldTrying to perform some call analysis we get stucked on the following puzzle:
Our calldetail datafeed is providing information of A and B party and we would like to combine them to one informationrecord based on the amount of overall calls.
Datafeed example:
header) phonenr A - phonenr B - timestamp - total calls A - total calls B - ok/not ok
1) ph1 - ph2 - 10:00:00 - 300 - 16 - ok
2) ph2 - ph1 - 10:00:00 - 16 - 300 - not ok
3) ph3 - ph4 - 10:05:00 - 1 - 10 - ok
4) ph4 - ph3 - 10:05:00 - 10 - 1 - ok
if phonenr A has more calls than B in the overalldataset (aggregated in query aside of this one) and the timestamps match (situation 1 & 2) we would like to interpret the two records as:
ph1 has connection with ph2 at 10:00:00, problem found on ph2 side
if phonenr B has more calls than A in the overalldataset (aggregated in query aside of this one) and the timestamps match (situation 3 & 4) we would like to interpret the two records as:
ph4 has connection with ph3 at 10:05:00, no problems found
Anyone got some ideas to solve this ? Any help would be welcome, thx in advance!