Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INDEX ON....IIF(x,'ASCENDING','DESCENDING')
Message
De
27/03/2000 09:36:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00350533
Message ID:
00350709
Vues:
28
The problem is that you are missing a field that defines group boundaries. So, you have to first process the records in pure ascending order to determine what the group boundaries are. Then you would have to use that information to process the table again. This seems like it would be a real dog for performance.

The idea would be to process the the records in ascending order and create a cursor, perhaps, defining the group boundaries. Then you would have to JOIN the table back to this cursor in some way, probably with a <= expression.

Alternatively, if your original result could be made into a writable cursor, such that it had a group field that could be written to, you could process it once and fill in the group field, and then INDEX the cursor on group + IIF( AorD = "A", , ).

None of this sounds appetizing, though.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform