MySQL Forums
Forum List  »  Newbie

Re: Query w/sum and GROUP BY for related tables?
Posted by: craig scyuli
Date: August 11, 2016 11:44AM

ok. so would this work if users clocked in and out multiple times on the same date?

Also, just to be clear, you are saying that when they clock in I should create a new row, but when they clock out I should first find the row where they clocked in and UPDATE the "t_out" field with a timestamp?

The update should be through a SQL update query not a trigger.

Please advise. thanks so much.

Options: ReplyQuote


Subject
Written By
Posted
Re: Query w/sum and GROUP BY for related tables?
August 11, 2016 11:44AM


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.