Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Std Deviation and UDFs in SQL Select
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00233026
Message ID:
00233047
Views:
63
>1.________
>
>Any standard SQL text gives the STDDEV function as a standard with SQL select. But it does not work with VFP:
>
> select field1, stddev(field2) from table1
>
>I tried STDDEV() - which is the SQL standard and STD() - which is a VFP function. They both don't work.
>
>STD() can only be used with CALCULATE whereas SUM, AVG and COUNT can be used with SQL select.
>

It's not possible for SQL to do standard deviation, since the sum of all the values must be known in advance...it would require two passes through the data...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform