Hi,
I'm a newbie. I tried the following in Access and it worked, but then I tried it in Interbase and it didn't like the SUM lines. Is there an equivalent for this statement? The query is from one table only. Thanks.
----------------------------------------------
SELECT Task.OwnerID,
SUM(IsComplete = -1) as CompleteTrue,
SUM(IsComplete = 0) as CompleteFalse
FROM Task
WHERE TaskType = 2
GROUP BY OwnerID
I'm a newbie. I tried the following in Access and it worked, but then I tried it in Interbase and it didn't like the SUM lines. Is there an equivalent for this statement? The query is from one table only. Thanks.
----------------------------------------------
SELECT Task.OwnerID,
SUM(IsComplete = -1) as CompleteTrue,
SUM(IsComplete = 0) as CompleteFalse
FROM Task
WHERE TaskType = 2
GROUP BY OwnerID