mysql - GROUP BY with COUNT including rows with 0 count -


Good morning

I need to create a query that will show me how many records have been modified The special date issue is that I would like to include those days which do not have any amendments (and display it as 0) How to do that? (Date (modified date)> = ADDDATE (revised date, interval - 200 days)) and date of the selected date as d, count (1) AS `c`) and (ManualModified = 1) Group by date (modified date)

Output:

  2013-09-19 40 2013-10-16 74- 2013- 10 -17 104 2013-10-18 186   

So I have to include the calculation along with 19-10. Is it possible without joining the temporary table?

If the dates are not present in the table as values, you must generate them and give them their query Will have to leave in

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -