Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select in VFP9
Message
 
To
13/02/2007 09:14:12
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01195079
Message ID:
01195086
Views:
17
>Hi all,
>I installed VFP9 on the windows where VFP8 was installed and was compiled my application in the new version without any errors.
>But on runtime I am getting error :
>SQL: ORDER BY clause is invalid
>
>for the next command(it works fine in VFP8):
>
> select min(tu51.f01) from tu51 into array __ttt ;
> Where f26 !=1 and tu51.f23 == g_emp_dep;
> order by tu51.f01
>
>If I change this to:
> select tu51.f01 from tu51 into array __ttt ;
> Where f26 !=1 and tu51.f23 == g_emp_dep;
> order by tu51.f01
>
>it passes without error.
>
>
>Why?

Yochanan,

Change it to:
select min(tu51.f01) from tu51 into array __ttt ;
     Where f26 !=1 and tu51.f23 == g_emp_dep;
      order by 1
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform