I have seen a thread with this same problem, but it hasn't helped me at all, and i was wondering if anyone could help me with this.... I need to get the Sum(Distinct e.hours_actual) But this doesn't work, and it is because distinct cannot be used with an aggregate function in JET SQL. So, is there a way around this? I have tried this...
Select sum(e.hours_actual)
From (select Distinct e.hours_actual from e)
but it does not bring back the results that i need. I have found that this works, to the effects that i need it to in SQL Server Query Analyzer...
Select(Distinct e.hours_actual)
From e
Any ideas? I need help with this!!!!!!!!!?!?!?!?!!?!?!
Thanks in advance.
-Ryan
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
Select sum(e.hours_actual)
From (select Distinct e.hours_actual from e)
but it does not bring back the results that i need. I have found that this works, to the effects that i need it to in SQL Server Query Analyzer...
Select(Distinct e.hours_actual)
From e
Any ideas? I need help with this!!!!!!!!!?!?!?!?!!?!?!
Thanks in advance.
-Ryan
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.