This is my request for the current day:
SELECT COUNT(*) FROM blog_posts WHERE postStatus = "pending" AND DATE(date_accepted) = CURDATE()
Now what about if I want to request this week? Thanks in advance.
Use the YEARWEEK() function
YEARWEEK()
WHERE YEARWEEK(date_accepted) = YEARWEEK(NOW())
Do not use WEEK() , because it will correspond to weeks from different years.
WEEK()
Source: https://habr.com/ru/post/975711/More articles:java.lang.RuntimeException: crash on startup - androidPHPExcel factory error reading XML from URL - xmlXcode 6.0.1 ios 7 Autostart - ios71sigma trust areas for 2d chart - pythonIs there a way to disable the smart keyboard panel in ios 8? - iphonehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/975712/setting-environment-variables-for-sublime-text-on-osx-desktop&usg=ALkJrhhz7jNoHRYNyd1j57hHas2z1zX3SADisplay view after AJAX call in asp.net MVC - jqueryTabBarItem icon not appearing immediately in ios 8 - iosPure code - dependency injection - constructorHow to hold a fixed div div heights more than viewport to body - jqueryAll Articles