Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Std Deviation and UDFs in SQL Select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00233026
Message ID:
00233047
Vues:
64
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform