Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Average help

Status
Not open for further replies.

Zonie32

Technical User
Jan 13, 2004
242
US
I have Claim_No. and two date fields, Received_Date and Response_Date. I have a DateDiff calculation to get the number of days between each date for each claim.

Now I want to find the average # of days overall claims and call that field Days_To_Respond. How do I write this?
 
Something like this ?
SELECT Avg(Response_Date - Received_Date) AS Days_To_Respond
FROM yourTable
WHERE Received_Date Is Not Null

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top