Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index on descending dates as part of expression
Message
De
24/08/2001 10:57:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/08/2001 10:47:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00548638
Message ID:
00548649
Vues:
9
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform