473,414 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Turn Around Time Calculation Within A Query?

Hi, I hope someone can help me

I have a Callback database that logs the time that a customer has called our department and have been unable to contact who they where after. When this happens a Callback would have been logged onto the database system. The information is logged and stored in my main table. I then have another table that records all the attempts that have been made by an agent to contact the customer back. These two tables are linked together using a MessageID auto number. This works fine, my issue is that i would like to produce a query that can calculate the turn around time from the customers first call to the time an agent has tried to contact the customer back.

For example:
MessageID 173570 SaveDate:14/09/2010 SaveTime: 14.13

MessageID 173570 AttemptID 80681 Attempt 1 AttemptDate:14/09/2010 Attempttime:15.18

In this example the turn around time would be 65 minutes. How can I calculate the time difference in minutes from 14.13 to 15.18 into a column at the end of my query.

Any help would be greatly appreciated
Sep 15 '10 #1
1 3494
Stewart Ross
2,545 Expert Mod 2GB
Hi. Are your attempttime and savetime fields of Date/Time type? If they are you can use the DateDiff function with a specified qualifier to return the differences in whatever unit you require - minutes ("n"), seconds ("s"), hours ("h") etc as follows:

TimeDiff: DateDiff("n", [Savetime], [Attempttime])

If they are not true date/time fields you can still do such conversions, but before embarking on this path it would be better to know whether or not they are date/time first.

-Stewart
Sep 15 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Glenn Cornish | last post by:
I am trying to get a result that will show me the difference, in hours and minutes, between two times. The application is on a staffing roster, and what i want to be able to do is calculate...
0
by: chris | last post by:
Cell Phone Repair & Unlocking Service, Fast Turn-Around & Great Prices! The Cell Shop http://www.cellphonerepair.org
5
by: Notgiven | last post by:
You want to check scheduling conflicts and you have a record like: appointments(table): apptID beginningDate endingDate beginningTime endingTime It's easy enough to check if a time is...
3
by: Shaun Harwood | last post by:
Hello all I seem to be getting nowhere with this issue - I'm sure it is not that complex so here goes. I want to create a table with three fields - two date/time types (Start_Date & Stop_Date)...
9
by: Paulo da Silva | last post by:
Hi. Why is this code not working? How can I implement this? Thanks. class C { private: struct stat st; ....
0
by: onlymukti4u | last post by:
Hi All, Can anyone help me out to get the code for knowing the login and logout time difference between some pages. What exactly I want is...."I have a small project having 5 pages,once the...
1
DTV12345
by: DTV12345 | last post by:
Hello! I am attempting to create a query that calculates a time value from GMT to Pacific time. It is, of course, based on the calendar date that I will have to figure out whether or not...
1
by: janbaztaimoori | last post by:
please provide help about calculation in query in Access. i can do this but the problom is that the calculated fiedl does not show in the table where the query was made from the table.
8
by: Proaccesspro | last post by:
I have several reports that are date driven. (There is a Date field called date received in the DB) I need to offer the user a time frame for each report. For example, I have a report named by...
7
by: Ecohouse | last post by:
I'm working on a project that was dropped in my lap. It is in Access 2003. There are short time fields which get calculated values (eg. 1:30). But I will need to total up those values for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.