Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL to retrieve maximum value from a row.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00305138
Message ID:
00305259
Vues:
19
Jim,
To do this I would have to add another field - time, the multi valued fields are half hourly time periods e.f.

Key, Date, hh1, hh2 ... hh47, hh48

Due to the nature of the information I would end up with around 23 million rows if I held the data in the format

A00408, 01/01/2000, 00:00, 20
A00408, 01/02/2000, 00:30, 21
A00408, 01/02/2000, 01:00, 22

I was hoping I could retrive the maximum value for each half hour and the time that this occured for each month of the year from the way the table is structured now. The data is pulled from an Oracle database through a Remote View and the appended to a local DBF for manipulation - check number of days with data, days with zeros populated.
The time to convert from this format into the one you describe would be time consuming.

Thankyou for your suggestions.
If only everything in life was as reliable as VFP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform