G
GTN170777
Just a quick question,
I've got a recordset like --
SELECT Count(JBESSiteID) AS TotalJBESent, M.Month, SUM(JBESReceipients) AS
Emails
FROM dbo.JBESent J RIGHT OUTER JOIN Months M ON DATEPART(month, JBESDate) =
M.Month AND JBESSiteID = MMColParam AND DATEPART(year, JBESDate) =
DATEPART(year, GETDATE()) GROUP BY Month
ORDER BY Month
Which works great, but I need it to return a valu of 0 if Emails
SUM(JBESReceipients) is Null,.. any ideas?
Thanks again
I've got a recordset like --
SELECT Count(JBESSiteID) AS TotalJBESent, M.Month, SUM(JBESReceipients) AS
Emails
FROM dbo.JBESent J RIGHT OUTER JOIN Months M ON DATEPART(month, JBESDate) =
M.Month AND JBESSiteID = MMColParam AND DATEPART(year, JBESDate) =
DATEPART(year, GETDATE()) GROUP BY Month
ORDER BY Month
Which works great, but I need it to return a valu of 0 if Emails
SUM(JBESReceipients) is Null,.. any ideas?
Thanks again