Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem view in VFP8.
Message
De
05/12/2003 23:30:53
 
 
À
05/12/2003 23:20:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00856440
Message ID:
00856544
Vues:
21
>>I think we have a winner! Now explain to me why those fields are NOT considered part of an aggregate function, if you would!
>>
>
>Hi Jim,
>
>
> ROUND(SUM(...)*facilitydata.facrebate*0.01,2) AS facility_rebate,  ;
> ROUND(SUM(...)*facilitydata.discountrate*0.01,2) AS employee_disc,  ;
> IIF(facilitydata.payroll,"Yes","No ") AS payroll
>
>
>ROUND and IIF are not aggregate functions, thus those three columns from facilitydata table are not aggregated.
>
>Thanks,
>Aleksey.

Thank you very much. The IIF() was known, but the ROUND() was not. My misunderstanding as how to handle the grouping in this case.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform