Jump to content

Time to log Email


Darren Rose
 Share

Recommended Posts

@Darren Rose it would be a report based on this type of query:

SELECT h_itsm_requests.h_pk_reference, TIMEDIFF(h_itsm_requests.h_datelogged, h_msg_messages.h_msg_date_received) as time_difference, h_itsm_requests.h_datelogged, h_msg_messages.h_msg_date_received
FROM h_itsm_requests 
JOIN h_msg_messages ON h_msg_messages.h_msg_id = h_itsm_requests.h_source_id 
WHERE h_itsm_requests.h_source_type = 'Email'

Obviously, the fields ins this SELECT example are just that, examples, apart from calculated "time_difference" which is actually the time difference you are looking for... What I mean is that you don't have to return h_pk_reference, h_datelogged or h_msg_date_received ... you can remove them or not, add other fields, etc. As per your needs.

  • Thanks 1
Link to comment
Share on other sites

1 hour ago, Victor said:

@Darren Rose it would be a report based on this type of query:


SELECT h_itsm_requests.h_pk_reference, TIMEDIFF(h_itsm_requests.h_datelogged, h_msg_messages.h_msg_date_received) as time_difference, h_itsm_requests.h_datelogged, h_msg_messages.h_msg_date_received
FROM h_itsm_requests 
JOIN h_msg_messages ON h_msg_messages.h_msg_id = h_itsm_requests.h_source_id 
WHERE h_itsm_requests.h_source_type = 'Email'

Obviously, the fields ins this SELECT example are just that, examples, apart from calculated "time_difference" which is actually the time difference you are looking for... What I mean is that you don't have to return h_pk_reference, h_datelogged or h_msg_date_received ... you can remove them or not, add other fields, etc. As per your needs.

Works a treat, thanks Victor :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...