Re: Filtering out zeros
- From: "Russell Fields" <russellfields@xxxxxxxxxx>
- Date: Mon, 21 May 2007 13:16:22 -0400
Tom,
A piece of sample code or a little more explanation would help. I assume
you do not mean:
SELECT AccountCode, AccountValue
FROM AccountTable
WHERE AccountValue <> 0
Perhaps you mean:
SELECT AccountCode, SUM(AccountValue) AS TotalValue
FROM AccountTable
GROUP BY AccountCode
HAVING SUM(AccountValue) <> 0
RLF
"Tom" <Tom@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3EAC5984-4844-4223-B910-20E81B0F2E41@xxxxxxxxxxxxxxxx
Running a query that adds up certain fields in our database and where
applicable returns a zero total. Looking for a way to return only those
lines that are not zero value.
I'm new to this SQL thing, have experience in Access but am tripped up on
this. Pls Advise
.
- Prev by Date: Re: SQL Syntax Question
- Next by Date: Re: Filtering out zeros
- Previous by thread: Re: SQL Syntax Question
- Next by thread: Re: Filtering out zeros
- Index(es):