|
|||||||||||
|
RE: [MYSQL]time of elapsed time
From: Weston, Craig (OFT) <Craig.Weston(at)oft.state.ny.us>
Date: Fri Oct 19 2007 - 12:56:11 EDT
First was IF(`status` = 'WIP',SUM(time_to_sec(RIGHT(`CLOCK_TIME`),8)),0) AS 'WIP' ( I addded the "RIGHT" limit on the string) And second was grouping by KEY,STATUS Further experimentation makes it appear that I am getting the right number of seconds for the entire string, so I am playing without the RIGHT() modifier right now. Maybe making a table with the status's on separate rows and then querying against that to make the single line?? This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message-----
From: mysql@subtropolix.org [mailto:mysql@subtropolix.org]
Sent: Friday, October 19, 2007 12:02 PM
Weston, Craig (OFT) wrote:
What is the query used for that result? brian -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=craig.weston@oft.state.ny.us -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=lists@pantek.comReceived on Fri Oct 19 12:57:24 2007 This archive was generated by hypermail 2.1.8 : Thu Jul 03 2008 - 08:40:34 EDT |
||||||||||
|
|||||||||||