Re: multiple paramters in aggregate function

From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: multiple paramters in aggregate function
Date: 2009-08-20 12:30:00
Message-ID: 4A8D41C8.4070804@compulab.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body style="direction: ltr;" bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:20090820122224(dot)GA5532(at)merkur(dot)hilbert(dot)loc"
type="cite">
<blockquote type="cite">
<pre wrap="">In other words, I have a conversion table of all different units. If
there is no conversion between 2 units (such as volume and area) then
the sum returns null.
</pre>
</blockquote>
<pre wrap=""><!---->
Shouldn't that return NULL IOW unknown ?

Karsten
</pre>
</blockquote>
I am not familiar with returning unknown. I know that according to the
spec an aggregate should only return null if all of its values of the
aggregate are null. If there is a way to return unknown in a non-NULL
way, then that would be preferred.<br>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 926 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2009-08-20 12:30:49 Re: Unit conversion database (was: multiple paramters in aggregate function)
Previous Message Karsten Hilbert 2009-08-20 12:22:24 Re: multiple paramters in aggregate function