Here's my query:
select COUNT(*) as total, COUNT(distinct user) as unique
FROM table
WHERE uristem in ('/example/', '/example/', '/example/', '/example/')
and time > DATE_SUB(NOW(), INTERVAL 24 HOUR)'
group by uristem;
Should look like this
100 50
25 50
0 0
100 35
But if there is no count, it looks like this (missing)
100 50
40 50
100 35
How can I fill in 0's instead?