E
Eric
I'm upsizing the data.mdb portion of my app to SQL Server, and running into
some problems with certain queries. Here is an example:
SQL:
SELECT Groups.Group, Format(Avg([D_Farrow]),"Short Date") AS AvgDate
FROM Groups INNER JOIN Farrowing ON Groups.Group = Farrowing.Group
GROUP BY Groups.Group;
Error Message (or something similar).:
The sum or aggregate function cannot take a datetime as an average.
Any ideas on the workaround?
Thanks.
e
some problems with certain queries. Here is an example:
SQL:
SELECT Groups.Group, Format(Avg([D_Farrow]),"Short Date") AS AvgDate
FROM Groups INNER JOIN Farrowing ON Groups.Group = Farrowing.Group
GROUP BY Groups.Group;
Error Message (or something similar).:
The sum or aggregate function cannot take a datetime as an average.
Any ideas on the workaround?
Thanks.
e