Divide by zero... - Mailing list pgsql-general

From Mike Leahy
Subject Divide by zero...
Date
Msg-id 1064928379.3f79847bb8fdb@www.nexusmail.uwaterloo.ca
Whole thread Raw
Responses Re: Divide by zero...
List pgsql-general
All...

I have a query that calculates various using variables from a survey
database.  As with any survey, there are many instantces of null values.  I'm
wondering if there is any way to escape the error caused by dividing by zero
or null values.  The specific message i get is:

ERROR:  floating point exception! The last floating point operation either
exceeded legal ranges or was a divide by zero

Is there a simple trick that won't make my queries excessively complex?

Many thanks.

Mike

----------------------------------------
This mail sent through www.mywaterloo.ca

pgsql-general by date:

Previous
From: Arguile
Date:
Subject: Re: Functional index performance question
Next
From: Tom Lane
Date:
Subject: Re: pg_hba.conf