Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desc and order by on VFP9
Message
From
03/05/2005 10:09:26
 
 
To
03/05/2005 09:53:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01010444
Message ID:
01010451
Views:
27
>>Hi all,
>>I find a strange behavior using 'DESC' and 'order by'. i.e. 'select lastname,firstname from myfile into cursor mycursor order by lastname,firstname desc' do not work. without 'desc' or without 'firstname' (with only one order by) it works.
>>Some suggest?
>>Thanx
>
>Francesco,
>
>You need to use the DESC keyword for each field that you want that order on. So,
>
>SELECT LastName, FirstName ;
>  FROM MyFile ;
>  INTO CURSOR MyCursor ;
> ORDER BY LastName DESC, FirstName DESC
>
>should do the trick.
>
>Regards

Thanx, I got a mistake.
Bye
Previous
Reply
Map
View

Click here to load this message in the networking platform