Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL: ORDER BY clause is invalid
Message
From
06/04/2005 16:21:39
 
 
To
05/04/2005 15:51:53
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:
01002080
Views:
20
>>< snip >
>>
>>>>What? Notable changes like SQL won't allow you to use the output column names in the ORDER BY clause in the first place? *g*>
>>
>>>Sure?
>>>
>>>Run this into MS SQL,it is ok:
>>>
>>>create TABLE #x1 ( firstname cHAR(10) )
>>>insert into #x1 values ( 'Dave' )
>>>insert into #x1 values ( 'Abe' )
>>>insert into #x1 values ( 'Albert' )
>>>select distinct substrING( firstname, 2, 5 ) as firstname
>>>   from #x1
>>>   order by firstname -- this is the output column Name
>>>
>>>DROP TABLE #X1
>>>
>>
>>
>>It is the group by that doesn't use output column names not the order by.
>
>This is correct because grouping a output column is a contradiction.

Right.

But if you set the EngineBehavior to 70, it will allow you to group by the output column.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform