これが私のクエリです:
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;
このように見えるはずです
100 50
25 50
0 0
100 35
でもカウントが無いとこんな感じ(抜けてる)
100 50
40 50
100 35
代わりに 0 を埋めるにはどうすればよいですか?