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

Click here to load this message in the networking platform