I have a set of posts on monthly basis. Now i need an array which contains total records of posts posted in each month. I tried below MySql query, Its working fine, but I wa
Did you try IFNULL() the right way? Maybe try IFNULL(Count(id), 0) in a SELECT clause with join.
IFNULL()
IFNULL(Count(id), 0)
SELECT