Re: getting around---division by zero on numeric - Mailing list pgsql-general

From Berend Tober
Subject Re: getting around---division by zero on numeric
Date
Msg-id 43565590.4080704@seaworthysys.com
Whole thread Raw
In response to Re: getting around---division by zero on numeric  (Richard Huxton <dev@archonet.com>)
List pgsql-general
Richard Huxton wrote:

> Tim Nelson wrote:
>
>> I am getting division by zero on a calculated field ( sum(sales) is 0 )
>
>
> It's a two-stage process, so you'll want a sub-query. Something like: ...

Thanks. That's a cool addition to my bag of tricks.

pgsql-general by date:

Previous
From: Lyubomir Rusanov
Date:
Subject: Re: [HACKERS] Call for translators
Next
From: Tom Lane
Date:
Subject: Re: getting around---division by zero on numeric