Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select SQL and ORDER BY...defective?
Message
De
24/02/2000 23:21:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00337312
Message ID:
00337321
Vues:
11
Real,

>SELECT * FROM invoice ORDER BY CLT_CODE,DATE && works perfect

If it works perfect, why not use that?

>SELECT * FROM invoice ORDER BY DATE,CLT_CODE && problem
>gives the same result as ORDER BY DATE
>
>I also tried a separate index and DTOS(DATE)+CLT_CODE

Either of those two will give you all clients for a date, in client order, then all clients for the next date.

Use the first example.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform