If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How could i calculate the different between 2 timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-10, 02:15
bh_hensem bh_hensem is offline
Registered User
 
Join Date: Jun 2009
Posts: 18
How could i calculate the different between 2 timestamp

Hi..

How could i calculate the different between 2 timestamp. please guide me ..

Below is my query:-
Code:
SELECT DISTINCT 
c.job_kat AS "JOB",
CONCAT (c.target_sla_sdate, c.target_sla_stime) AS "SLA",
CONCAT (c.target_sla_edate, ' ', c.target_sla_etime) AS "ARAHAN",
TIMEDIFF(CONCAT (c.target_sla_sdate, ' ', c.target_sla_stime), 
CONCAT (c.target_sla_edate, ' ', c.target_sla_etime)) AS "BEZA",
c.request_id
FROM customerjobrequest c JOIN jobrequest j ON c.JobTicketID = j.JobTicketID
JOIN packextra_trans p ON p.JobTicketID = j.ID
WHERE job_type LIKE "bill" AND data_filename LIKE "%01022010%"
GROUP BY c.request_id
ORDER BY p.JobTicketID;
Reply With Quote
  #2 (permalink)  
Old 05-13-10, 10:56
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On