MySQL Forums
Forum List  »  Newbie

Re: Grouping by hour, day, weekday, week, month and year
Posted by: laptop alias
Date: October 03, 2011 12:36AM

>How do I start the week from Monday and end with Sunday?

That's covered in the manual.

dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_week

>And is there a possibility to start 4am Monday to 4am the following Monday with this approach?

Subtract 14400 seconds from each value.

Options: ReplyQuote




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.