Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting by date descending
Message
De
30/03/2001 12:42:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/03/2001 12:33:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00490370
Message ID:
00490372
Vues:
13
>What’s the best way to index by descending date? I need to sort by cRoadName+cMilePost+dDate.
>
>Example:
>
>
(Name)  Airport Road
>(milepost)          1.234        03/30/2001
>                    1.234        03/30/2000
>                    1.234        03/23/1999
>                    2.345        03/30/2001
>                    2.345        03/30/2000
>                    2.345        03/23/1999
>
etc.....
>
>Thanks

Jim,
Actually you sort on Roadname and milepost ascending but date descending, right ?

Then how about :

index on RoadName+transform(MilePost)+padl({^9999/12/31}-dDate,7,'0') tag ..
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform