This problem occurs because you bind the installation and removes it. That is, you show the settings for a given date and are deleted for these settings, and not on the installation date.
If you want to see the amount of each event on a given date, you will need to join the date, not the installation ID. If this is a large data set, it will be very slow (the optimizer cannot use indexes in a field when grouping or combining based on a function in this field).
SELECT DATE(installs.created), COUNT(installs.id), COUNT(uninstall.id) FROM installs LEFT JOIN uninstalls ON DATE(uninstalls.created) = DATE(installs.created) GROUP BY DATE(installs.created)
Jeremy smyth
source share