MySQL Forums
Forum List  »  Newbie

Re: Help with SELECT and TIMEDIFF
Posted by: Bob Field
Date: March 23, 2006 05:16PM

SUM() is summing the hours portion of the time only. Try this:

SEC_TO_TIME( SUM( TIME_TO_SEC( TIMEDIFF( login_date_time_log_exit, login_date_time_log_entry))))

Options: ReplyQuote


Subject
Written By
Posted
Re: Help with SELECT and TIMEDIFF
March 23, 2006 05:16PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.