Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL: ORDER BY clause is invalid
Message
From
02/04/2005 08:35:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01000629
Message ID:
01000970
Views:
22
>>
>>To SQL server it's valid. IOW with a sample from pubs:
>>
>>
>>select distinct au_fname,au_lname, phone, right(phone,4) as PhoneNo
>>  from Authors
>>  order by PhoneNo,Phone
>>
>is valid.
>
>Cetin,
>
>What bug are you talking about? Such query works fine in VFP9.
>OPEN DATABASE (HOME(2) + "Data\testdata")
>USE testdata!employee
>SELECT DISTINCT first_name, last_name, ;
>	home_phone, RIGHT(ALLTRIM(home_phone),4) AS ph ;
>	FROM employee ;
>	ORDER BY ph, home_phone
>
Sergey,
I didn't install VFP9 yet and cannot talk about a bug on my own. It was reported in this thread (provided a. was a typo) such a query returned "ORDER BY clause is invalid" error. I assumed it really returned that error in VFP9. If it doesn't than no problem. Otherwise it's a bug.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform