Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Sum
Message
From
08/08/1998 23:27:57
 
 
To
08/08/1998 21:18:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00125058
Message ID:
00125086
Views:
14
>Hi Mo,
>
>I get a "general" SQL compile error, in that SQL doesn't understand the code. I did work around my immediate problem by breaking my SQL statements into three seperate expressions.
>
>However, I guess my question is can you combine more than one "sum" statement within a SQL expression. I.e. "Select all from Sample, sum for x,+ sum for y + sum for z, etc..
>
>Any ideas?

Hi Donald

I just tested the SQL as you said without any problem,

Select *, sum(x)+sum(y) from table ....

I am using vfp5.
It could be different problem

Mo
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform