MySQL Forums
Forum List  »  Newbie

Re: Grouping by hour, day, weekday, week, month and year
Posted by: Kashif Butt
Date: September 26, 2011 02:24PM

SELECT job_date_time, SUM(amount) FROM jobs GROUP BY WEEK(job_date_time)

I don't even know whether the SUM is from Monday to Sunday or from some other day. And it only gives the earliest 53 records , no records after that.

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.