Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index on descending dates as part of expression
Message
From
24/08/2001 10:57:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/08/2001 10:47:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00548638
Message ID:
00548649
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
>
SELECT * FROM mytable ;
> WHERE state = m.myState ;
> ORDER BY sequence, eff_date DESC ;
> INTO CURSOR myCursor
>
>At first I tried doing it by creating an index expression which would allow me to
>
>
 SEEK m.myState
>SCAN WHILE mytable.state = m.myState
>etc.
>
index ... on state + str(sequence) + str({^9999-01-01} - eff_date)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform