Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL months in correct order
Message
 
À
04/08/2005 11:18:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01038533
Message ID:
01038541
Vues:
20
One of the solutions could be like this:
sele *, iOrder(month_field) _order from .... order by _order


*-------------------
Procedure iOrder
Parameter pcMonth
do case
case pcMOnth="JAN"
    return 1
case pcMOnth="FEB"
    return 2

......
>Hi. I have stored months in my data as 'JAN','FEB','MAR', etc. Not so smart! Now I want to sort them correctly on my report. The question is How??
>
>Thanks, Randy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform