Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time calculation
Message
De
06/11/2001 05:06:49
 
 
À
05/11/2001 16:11:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00577597
Message ID:
00577838
Vues:
21
>>Hi all
>>I have a table that contains all incoming and out going calls,
>>with the Following fileds call_date , call_time phoneline and duration of each call,
>>What I need to know is if it ever happen that all lines where busy at the same time and if yes for how long,
>>Thank You
>
>The algorithm, I think, would be something like this:
>
>Convert each record to two: one with start_date_time, one with end_date_time. Go through the result in chronological (date_time) order. Start with zero. Add one for each time a call starts, subtract one for each time a call finishes. Alarm when your count = MAX_COUNT (the number of available phone lines).
>
>HTH, Hilmar.

Hi Hilmar,

Good idea, but most of the systems I interface with don't report on the call until it is completed. Notice his 'duration' field ? Your alarm won't work in this case. Realtime, that is. I'm trying it with some historical data... :>)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform