D
D.P. Roberts
Query1 contains the following columns:
Username
TotalLogonHours (uses SUM of data from Query2's column, which calculates
total hours of each logon session by subtracting the logon time from the
logoff time)
I'd like to have a third column in Query1 that displays each user's average
logon hours per day. I tried adding a third column as follows:
AvgHrsPerDay: [TotalLogonHours]/(Max([logontime])-Min([logontime])) but it
gives an error saying I cannot have aggregate function in GROUP BY clause.
Any ideas?
Username
TotalLogonHours (uses SUM of data from Query2's column, which calculates
total hours of each logon session by subtracting the logon time from the
logoff time)
I'd like to have a third column in Query1 that displays each user's average
logon hours per day. I tried adding a third column as follows:
AvgHrsPerDay: [TotalLogonHours]/(Max([logontime])-Min([logontime])) but it
gives an error saying I cannot have aggregate function in GROUP BY clause.
Any ideas?