MySQL Forums
Forum List  »  General

Re: grouping of second by second records
Posted by: Peter Brawley
Date: April 27, 2014 08:32PM

eg group by cashier and 15-min bands of timecol:

... group by cashier, ( 4 * hour(timecol) + floor( minute(timecol) / 15 )) ...

For more on such logic see "Group data by datetime periods" at http://www.artfulsoftware.com/queries.php

Options: ReplyQuote


Subject
Written By
Posted
Re: grouping of second by second records
April 27, 2014 08:32PM


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.