Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order By on a String
Message
De
17/09/2003 10:36:38
 
 
À
17/09/2003 10:23:29
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00829868
Message ID:
00829885
Vues:
18
>I need to find badge numbers in order. I do select... Order on badgeno. The badgeno is a charactor, 'CNT1','CNT2','CNT3',...'CNT20'. It sorts as CNT1,CNT10,CNT2,CNT20. How can I get this in a numerical order?

Steven,

The badgno is not very well formatted for that

If the form of the badgeno is the same everywhere
select  left(badgeno,3), ;
        val(substr(Badgeno,4)), ;
        * ;
   from TheTable ;
   into cursor TheCursor ;
 order by 1,2
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform