Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where is the sql's statement error
Message
 
 
To
18/10/2007 13:54:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01261866
Message ID:
01261904
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
You can sort any way you want. It's irrelevant to your problem. The fact that query runs in Fox 2.x doesn't mean that it produces correct result. See Re: Change in SQL commands! Message #941774

>My try is about to have the result in desc order.. a cursor with the best seller products to the less one.. May I have to sort..I tried the same on 2.6a and I give a good result.. with 'group by' diff of 'order by'
>
>>
>>Once again, you have to group on all none-aggregate fields
>>
>>SELECT  SUM(qty) as tot_qty, SUM(tot) as sumt, client, codesy, unit, comiss;
>>...
>>GROUP BY client, codesy, unit, comiss ;
>>
>>* if grouping on codesy only
>>
>>SELECT  SUM(qty) as tot_qty, SUM(tot) as sumt, codesy ;
>>...
>>GROUP BY codesy ;
>>
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform