Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INDEX ON....IIF(x,'ASCENDING','DESCENDING')
Message
From
27/03/2000 09:36:23
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00350533
Message ID:
00350709
Views:
27
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform