嗨,有人可以帮我吗?
我做了这个查询:
SELECT DISTINCT(CAMPAIGN),
count(STATUS)
FROM
C18_101 INNER JOIN CLIENT_10 ON C18_101.ID = CLIENT_10.ID
WHERE CAMPAIGN in ('Batch 1','Batch 2','Batch 3','Batch 4','Batch 5') AND STATUS = 'Pending'
GROUP BY CAMPAIGN,STATUS
结果如下所示:
Batch 2 241
Batch 3 321
Batch 4 575
Batch 5 429
即使没有,我也需要 Batch1 的结果。