Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select SQL and ORDER BY...defective?
Message
 
To
24/02/2000 23:21:29
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00337312
Message ID:
00337329
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform