私はmysql DBを持っています。
以下のクエリを実行しています。
SELECT cluster,
infra_properties.property_name property,
count(*)
FROM raw_alerts,
infra_properties
WHERE infra_properties.parent_group = raw_alerts.cluster
AND cluster = 'abuse-content'
AND infra_properties.property_name = 'BigBro'
AND timestamp BETWEEN '2012-12-24 00:00:00' AND '2012-12-24 23:59:59'
GROUP BY cluster;
出力が null になっていますが、私の要件は count=0 です。後述のとおりです。
+---------------+----------+----------+
| cluster | property | count(*) |
+---------------+----------+----------+
| abuse-content | BigBro | 0 |
+---------------+----------+----------+
1 row in set (0.30 sec)