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

>>SELECT * FROM invoice ORDER BY CLT_CODE,DATE && works perfect
>
>If it works perfect, why not use that?
>Use the first example.

Because I need to regroup the oldest accounts due by clients.
For easiest reading I'll use ANSI date (yyyy.mm.dd) in this exemple.
   DATE    CLT_CODE
1996.01.01 FFF
1998.01.01 FFF
1999.01.01 FFF
2000.02.24 FFF

1997.01.01 BBB
2000.02.22 BBB

1999.12.31 AA
2000.10.01 AA
You see the oldest account is the first oldest reference for each client.
Réal Philippon
www.ultra.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform