SELECT
time_dimension.db_date, COUNT(clients.date_create)
FROM
time_dimension
LEFT JOIN
clients
ON
time_dimension.db_date = DATE_FORMAT(clients.date_create,"%Y-%m-%d")
AND clients.`delete`='0'
WHERE
time_dimension.db_date BETWEEN '2019-12-01' AND '2019-12-30'
GROUP BY
time_dimension.db_date
ORDER BY
time_dimension.db_date