Useful links and code snippets. PHP, MySQL, Javascript, Jquery, Bash, etc…
SELECT COUNT(*), DATE_ADD(DATE(`orders`.`date`), INTERVAL (7 - DAYOFWEEK(`orders`.`date`)) DAY) AS `week_end` FROM `orders` GROUP BY `week_end`;
Post a Comment
No comments:
Post a Comment