I need some help with the following query.
Select date, Source,count(*) as TOTALCOUNT
from Table A
where date = '2014-10-15' and Source = 'EMAIL'
group by date,source
There is no EMAIL
source
for a particular day. So, it gives no rows.
But I want to get 0
in Totalcount
even if EMAIL
is not there for that day but can present next day.
It should be like,
Date,Source, Totalcount
15/10/14,Email,0
I used ISNULL
function not working as no rows has been resulted.