vpekulas
asked on
Generating Average time difference between 2 dates in MS Access (SQL)
I have a table with this structure in Access database
tbl_issue
- ID (autonumber)
- fldSTART (Date/Time)
- fldUPDATED (Date/Time)
Now I need to find out the average difference between the 2 dates above
for all records. Question is how would I go about it ?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Select avg(fldUPDATED - fldSTART) from YourTable
How do you want to express the average? (hours, minutes, seconds)
How do you want to express the average? (hours, minutes, seconds)
Select Format(avg(fldUPDATED - fldSTART), "dd hh:nn:ss") from YourTable
SELECT Avg(DateDiff("d",[fldstart ],[fldupda ted])) AS Expr1
FROM tbl_issue;
FROM tbl_issue;
wow... everyone at once.
ASKER
Thanks guys, exactly what I needed :)
AvgDifference: Avg(DateDiff("n",fldSTART,