You can use a CASE statement for this.
In an example grouping by months, you could try something like...
SELECT state,
--GET JANUARY TOTAL
CASE datepart(mm,DateField) when 1 then
SUM(AmountField)
ELSE 0
END JanuaryTotal,
--GET...
Hey folks. We are using MDaemon v.8.0.2. I have a user that regularly checks his email out of the office. He is now unable to check the account and is receiving a message that says the request to the server timed out.
On the mail server I am seeing a lot of attempts to connect that are blocked...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.