Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very Complex SQL - My Brain Hurts
Message
 
 
À
05/07/2006 11:50:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01133780
Message ID:
01133876
Vues:
22
Hi Terry.

So far, the prolem was to get info from you not the query itself. On one hand you said that multiplier is "dealt with in the pre-processing of the raw ETM data that gets compiled into out ETMDATA table" on other you are saying that it should be pulled from the Operator-Class table.

>You see the Operator-Class table has op#, class# and multiplier?
>
>So when a class is encountereed in the ETMData table, its assoc. multiplier is looked up in the Op-Class table, via the the ETMData's Op# & Class #
>
>Told you this was a brain ache! :-)
>
>Thank you for your continuing interest, as usual
>
>>Where "Multiplier" in your report comes from? I don't see it mentioned as a part of ETMDATA table.
>>
>>>>What about "Multiplier"? Does OPERATOR_CLASS table also has date field?
>>>
>>>OK, we're after the averag no. of journeys in the ETMDATA (Automated Ticket M/c DATA)say the pensioner bought a return ticket, (a particular class), that class's multiplier might be 2.0, meanimng that ticket is worth 2 trips. An all-day-rover (class) might be used, on average, 2.5 trips.
>>>
>>>This only applies to last year's data. Now as they're all zero-rated, all classes have a multiplier of 1.0.
>>>
>>>Very astute of you to divine that the Op. Class table has a date. Actually it has a start and end date, specifying when the conc. scheme began and ends. But that isn't important here as that's dealt with in the pre-processing of the raw ETM data that gets compiled into out ETMDATA table that sums up ticket sales for each ticket class within each route.
>>>
>>>Confused? I know I am! ;-S
>>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform