Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem view in VFP8.
Message
From
05/12/2003 23:30:53
 
 
To
05/12/2003 23:20:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00856440
Message ID:
00856544
Views:
20
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform