I have a table just like in this SQLfiddle - http://www.sqlfiddle.com/#!9/3b6f8a/1
And i try to count unique occurrences of visits, but I need to also have dates where count is zero. In sample result you can see that for date 2019-07-24 there is missing 0 result for .bid and similar for 25th.
I have searched through stackoverflow and found only solutions for multiple tables using LEFT JOIN. I have no idea how to apply it to single table.
Below is working query I have that doesnt show zero values.
SELECT COUNT(DISTINCT `hash`) wizyt, DATE(timestamp) AS timestamp, CASE
WHEN url LIKE '%.bid%' THEN 'bid'
WHEN url LIKE '%.online%' THEN 'online'
END AS landing
FROM `tracking_actions`
WHERE `action` = 'w90|landing-visit'
GROUP BY DATE(timestamp), landing ORDER BY timestamp
Kindly please help :)